зеркало из https://github.com/mozilla/gecko-dev.git
Reftest for bug 474472
This commit is contained in:
Родитель
f341f1aab8
Коммит
2e802ae7e0
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<iframe id="foo" src="data:text/html,<body bgcolor='lime'>PASS</body>"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<body>
|
||||
<iframe id="foo" src="data:text/html,<body bgcolor='red'>FAIL</body>"></iframe>
|
||||
<script type="text/javascript">
|
||||
// Globals
|
||||
var foo = document.getElementById('foo');
|
||||
var win = foo.contentWindow;
|
||||
|
||||
// Start the chain of execution when iframe's window loads
|
||||
win.onload = iframeWindowLoaded;
|
||||
|
||||
function iframeWindowLoaded() {
|
||||
setTimeout("tweak()", 0);
|
||||
}
|
||||
function tweak() {
|
||||
win.location ="data:text/html,<body bgcolor='lime'>PASS</body>";
|
||||
foo.onload = snapshot;
|
||||
}
|
||||
function snapshot() {
|
||||
document.documentElement.className = '';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -1031,3 +1031,4 @@ fails == 461512-1.html 461512-1-ref.html # Bug 461512
|
|||
== 472500-1.xul 472500-1-ref.xul
|
||||
== 474336-1.xul 474336-1-ref.xul
|
||||
== 474417-1.html 474417-1-ref.html
|
||||
== 474472-1.html 474472-1-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче