Skip to content
Browse files

Ensure that base_multiple.html fails rather than times out in the typ…

…ical failure case.
  • Loading branch information
Ms2ger authored and jdm committed Feb 10, 2016
1 parent 0f383a5 commit 6ce5b7527a88646f07fa199d1020b6e9268007aa
@@ -1,6 +1,5 @@
type: testharness
expected: TIMEOUT
[The attributes of the a element must be affected by the first base element]
expected: NOTRUN
expected: FAIL

@@ -12,15 +12,17 @@
async_test(function() {
window.onload = this.step_func(function() {
var fr1 = document.getElementById("test1");
fr1.addEventListener("load", this.unreached_func("loaded in the wrong iframe"));

var fr2 = document.getElementById("test2");
fr2.addEventListener("load", this.step_func_done(function () {
var doc2 = fr2.contentDocument;
assert_not_equals(doc2.location.href.indexOf("example2.html"), -1, "The target attribute does not impact the a element.");
assert_equals(doc2.getElementById("d1").innerHTML, "PASS", "The opend page should be the example2.html.");
}), true);

var doc1 = document.getElementById("test1").contentDocument;
}, "The attributes of the a element must be affected by the first base element");

0 comments on commit 6ce5b75

Please sign in to comment.
You can’t perform that action at this time.