mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 5dbe45af3ad3a933c03187c72f1c12cbe2877703
This commit is contained in:
parent
6c0eb115f4
commit
9aa1b1e408
129 changed files with 2604 additions and 290 deletions
|
@ -90,8 +90,9 @@ tests_arr.forEach(function(test_obj) {
|
|||
var loadCount = 0;
|
||||
iframe.onload = t.step_func(function() {
|
||||
loadCount++;
|
||||
var got = iframe.contentDocument.body.textContent.trim();
|
||||
if (test_obj.expected.length === 0) {
|
||||
assert_equals(iframe.contentDocument.body.textContent, 'no redirect\n');
|
||||
assert_equals(got, 'refresh.sub.html');
|
||||
if (loadCount === 1) {
|
||||
setTimeout(function() {
|
||||
t.done();
|
||||
|
@ -101,8 +102,7 @@ tests_arr.forEach(function(test_obj) {
|
|||
}
|
||||
} else {
|
||||
if (loadCount === 2) {
|
||||
var path = iframe.contentWindow.location.pathname;
|
||||
assert_equals(decodeURIComponent(path.substr(path.lastIndexOf('/') + 1)), test_obj.expected[1]);
|
||||
assert_equals(got, test_obj.expected[1]);
|
||||
t.done();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
;url=foo
|
|
@ -0,0 +1 @@
|
|||
Content-Type: text/html
|
|
@ -0,0 +1 @@
|
|||
foo
|
|
@ -0,0 +1 @@
|
|||
foo'bar
|
|
@ -1 +1 @@
|
|||
<!doctype html><meta http-equiv=refresh content="{{GET[input]}}">no redirect
|
||||
<!doctype html><meta http-equiv=refresh content="{{GET[input]}}">refresh.sub.html
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
ufoo
|
|
@ -0,0 +1 @@
|
|||
urfoo
|
|
@ -0,0 +1 @@
|
|||
url foo
|
|
@ -0,0 +1 @@
|
|||
urlfoo
|
|
@ -0,0 +1 @@
|
|||
x;url=foo
|
Loading…
Add table
Add a link
Reference in a new issue