Skip to content
Permalink
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 @@
[base_multiple.html]
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 @@
<script>
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;
doc1.getElementById("a1").click();
fr1.contentDocument.getElementById("a1").click();
});
}, "The attributes of the a element must be affected by the first base element");
</script>

0 comments on commit 6ce5b75

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