layout/generic/test/test_bug938772.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/test/test_bug938772.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!doctype html>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=938772
     1.8 +-->
     1.9 +<title>Test for Bug 938772</title>
    1.10 +<script src="/tests/SimpleTest/SimpleTest.js"></script>
    1.11 +<link rel="stylesheet" href="/tests/SimpleTest/test.css">
    1.12 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=938772">Mozilla Bug 938772</a>
    1.13 +<p id="display"></p>
    1.14 +<iframe id="i"></iframe>
    1.15 +<pre id="test">
    1.16 +<script>
    1.17 +SimpleTest.waitForExplicitFinish();
    1.18 +
    1.19 +i.onload = function() {
    1.20 +  ok(!i.contentDocument.getElementById("v").failed,
    1.21 +     "Check whether an error was reported");
    1.22 +  SimpleTest.finish();
    1.23 +};
    1.24 +i.src = "data:text/html,<base href='http://basetag/basetag'><video id='v' onerror='v.failed=true'></video>";
    1.25 +</script>
    1.26 +

mercurial