Skip to content


Browse files Browse the repository at this point in the history
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 6ce5b75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
@@ -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

Expand Up @@ -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");
Expand Down

0 comments on commit 6ce5b75

Please sign in to comment.