зеркало из https://github.com/mozilla/gecko-dev.git
Bug 460323 testcase.
This commit is contained in:
Родитель
79c05b8d5c
Коммит
77d1e9b388
|
@ -0,0 +1,30 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<script>
|
||||
var expectedLoads = 3;
|
||||
function load_done() {
|
||||
--expectedLoads;
|
||||
if (expectedLoads == 0) {
|
||||
document.documentElement.className = "";
|
||||
}
|
||||
}
|
||||
function addLink() {
|
||||
var l = document.createElement("link");
|
||||
l.rel = "stylesheet";
|
||||
l.type = "text/css";
|
||||
l.href = "data:text/css,some { random: data }";
|
||||
l.onload = load_done;
|
||||
document.getElementsByTagName("head")[0].appendChild(l);
|
||||
}
|
||||
function doIt() {
|
||||
document.styleSheets[0].insertRule('a {}', 0)
|
||||
addLink();
|
||||
addLink();
|
||||
}
|
||||
addLink();
|
||||
</script>
|
||||
</head>
|
||||
<body onload="doIt()">
|
||||
<body>
|
||||
</body>
|
|
@ -34,6 +34,7 @@ load 448161-2.html
|
|||
load 452150-1.xhtml
|
||||
load 456196.html
|
||||
load 460217-1.html
|
||||
load 460323-1.html
|
||||
load 466845-1.html
|
||||
load 469432-1.xhtml
|
||||
load 472195-1.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче