1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/tests/mochitest/bugs/test_bug857555.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=857555 1.8 +--> 1.9 +<head> 1.10 + <meta charset="utf-8"> 1.11 + <title>Test for Bug 857555</title> 1.12 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 + <script type="application/javascript"> 1.15 + 1.16 + /** Test for Bug 857555 **/ 1.17 + SimpleTest.waitForExplicitFinish(); 1.18 + 1.19 + addLoadEvent(function() { 1.20 + is(content, $("t").contentWindow, "'content' as iframe name should work"); 1.21 + is(sidebar, $("u").contentWindow, "'sidebar' as iframe name should work"); 1.22 + SimpleTest.finish(); 1.23 + }); 1.24 + </script> 1.25 +</head> 1.26 +<body> 1.27 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=857555">Mozilla Bug 857555</a> 1.28 +<p id="display"></p> 1.29 +<div id="content" style="display: none"> 1.30 + <iframe name="content" id="t"></iframe> 1.31 + <iframe name="sidebar" id="u"></iframe> 1.32 +</div> 1.33 +<pre id="test"> 1.34 +</pre> 1.35 +</body> 1.36 +</html>