1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/generic/test/test_bug449653.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,44 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=449653 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 449653</title> 1.11 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 + <style> 1.15 + iframe { 1.16 + width: 500px; 1.17 + height: 300px; 1.18 + } 1.19 + </style> 1.20 +</head> 1.21 +<body onload="doTest()"> 1.22 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=449653">Mozilla Bug 449653</a> 1.23 +<p id="display"></p> 1.24 +<div id="content"> 1.25 +<iframe src="file_bug449653_1.html" id="f1"></iframe> 1.26 +<iframe id="f2" src="file_bug449653_1_ref.html"></iframe> 1.27 +</div> 1.28 +<pre id="test"> 1.29 +<script type="application/javascript"> 1.30 + 1.31 +/** Test for Bug 449653 **/ 1.32 +SimpleTest.waitForExplicitFinish(); 1.33 + 1.34 +var f1 = document.getElementById("f1"); 1.35 +var f2 = document.getElementById("f2"); 1.36 + 1.37 +function doTest() { 1.38 + ok(compareSnapshots(snapshotWindow(f1.contentWindow), 1.39 + snapshotWindow(f2.contentWindow), true)[0], 1.40 + "No red should be shown"); 1.41 + 1.42 + SimpleTest.finish(); 1.43 +} 1.44 +</script> 1.45 +</pre> 1.46 +</body> 1.47 +</html>