mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
Update web-platform-tests to revision d7e3966f8c9ada639ffbdf2f5fcd4939e0d89a7f
This commit is contained in:
parent
f77bfb3c49
commit
549cc12801
349 changed files with 3319 additions and 653 deletions
|
@ -10,22 +10,13 @@
|
|||
<script>
|
||||
setup({allow_uncaught_exception:true});
|
||||
var t = async_test();
|
||||
var t_col = async_test(document.title+' (column)');
|
||||
var ran = false;
|
||||
var col_value;
|
||||
var interval;
|
||||
window.onerror = t.step_func(function(a, b, c, d){
|
||||
window.addEventListener('error', t.step_func(e => {
|
||||
clearInterval(interval);
|
||||
ran = true;
|
||||
col_value = d;
|
||||
assert_equals(a, 'Script error.', 'first arg');
|
||||
assert_equals(b, '', 'second arg');
|
||||
assert_equals(c, 0, 'third arg');
|
||||
});
|
||||
function col_check() {
|
||||
assert_equals(col_value, 0, 'fourth arg');
|
||||
t_col.done();
|
||||
}
|
||||
assert_equals(e.error.constructor, SyntaxError);
|
||||
}));
|
||||
var script = document.createElement('script');
|
||||
script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/syntax-error-in-setInterval.js');
|
||||
document.body.appendChild(script);
|
||||
|
|
|
@ -10,20 +10,11 @@
|
|||
<script>
|
||||
setup({allow_uncaught_exception:true});
|
||||
var t = async_test();
|
||||
var t_col = async_test(document.title+' (column)');
|
||||
var ran = false;
|
||||
var col_value;
|
||||
window.onerror = t.step_func(function(a, b, c, d){
|
||||
window.addEventListener('error', t.step_func(e => {
|
||||
ran = true;
|
||||
col_value = d;
|
||||
assert_equals(a, 'Script error.', 'first arg');
|
||||
assert_equals(b, '', 'second arg');
|
||||
assert_equals(c, 0, 'third arg');
|
||||
});
|
||||
function col_check() {
|
||||
assert_equals(col_value, 0, 'fourth arg');
|
||||
t_col.done();
|
||||
}
|
||||
assert_equals(e.error.constructor, SyntaxError);
|
||||
}));
|
||||
var script = document.createElement('script');
|
||||
script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/syntax-error-in-setTimeout.js');
|
||||
document.body.appendChild(script);
|
||||
|
|
|
@ -10,22 +10,13 @@
|
|||
<script>
|
||||
setup({allow_uncaught_exception:true});
|
||||
var t = async_test();
|
||||
var t_col = async_test(document.title+' (column)');
|
||||
var ran = false;
|
||||
var col_value;
|
||||
var interval;
|
||||
window.onerror = t.step_func(function(a, b, c, d){
|
||||
window.addEventListener('error', t.step_func(e => {
|
||||
clearInterval(interval);
|
||||
ran = true;
|
||||
col_value = d;
|
||||
assert_equals(a, 'Script error.', 'first arg');
|
||||
assert_equals(b, '', 'second arg');
|
||||
assert_equals(c, 0, 'third arg');
|
||||
});
|
||||
function col_check() {
|
||||
assert_equals(col_value, 0, 'fourth arg');
|
||||
t_col.done();
|
||||
}
|
||||
assert_equals(e.error.constructor, ReferenceError);
|
||||
}));
|
||||
var script = document.createElement('script');
|
||||
script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/undefined-variable-in-setInterval.js');
|
||||
document.body.appendChild(script);
|
||||
|
|
|
@ -10,20 +10,11 @@
|
|||
<script>
|
||||
setup({allow_uncaught_exception:true});
|
||||
var t = async_test();
|
||||
var t_col = async_test(document.title+' (column)');
|
||||
var ran = false;
|
||||
var col_value;
|
||||
window.onerror = t.step_func(function(a, b, c, d){
|
||||
window.addEventListener('error', t.step_func(e => {
|
||||
ran = true;
|
||||
col_value = d;
|
||||
assert_equals(a, 'Script error.', 'first arg');
|
||||
assert_equals(b, '', 'second arg');
|
||||
assert_equals(c, 0, 'third arg');
|
||||
});
|
||||
function col_check() {
|
||||
assert_equals(col_value, 0, 'fourth arg');
|
||||
t_col.done();
|
||||
}
|
||||
assert_equals(e.error.constructor, ReferenceError);
|
||||
}));
|
||||
var script = document.createElement('script');
|
||||
script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/undefined-variable-in-setTimeout.js');
|
||||
document.body.appendChild(script);
|
||||
|
|
|
@ -5,5 +5,4 @@ step_timeout(function(){
|
|||
assert_true(ran, 'ran');
|
||||
t.done();
|
||||
});
|
||||
t_col.step(col_check);
|
||||
}, 20);
|
|
@ -4,5 +4,4 @@ setTimeout(function(){
|
|||
assert_true(ran, 'ran');
|
||||
t.done();
|
||||
});
|
||||
t_col.step(col_check);
|
||||
}, 20);
|
||||
|
|
|
@ -5,5 +5,4 @@ step_timeout(function(){
|
|||
assert_true(ran, 'ran');
|
||||
t.done();
|
||||
});
|
||||
t_col.step(col_check);
|
||||
}, 20);
|
|
@ -4,5 +4,4 @@ setTimeout(function(){
|
|||
assert_true(ran, 'ran');
|
||||
t.done();
|
||||
});
|
||||
t_col.step(col_check);
|
||||
}, 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue