Update web-platform-tests to revision 5dbe45af3ad3a933c03187c72f1c12cbe2877703

This commit is contained in:
Ms2ger 2015-12-09 01:38:02 -05:00
parent 6c0eb115f4
commit 9aa1b1e408
129 changed files with 2604 additions and 290 deletions

View file

@ -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();
}
}

View file

@ -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