3 <script language='javascript'
>
7 testRunner
.dumpAsText();
8 var sheets
= document
.styleSheets
;
9 if (sheets
.length
== 11) {
10 for (i
= 0; i
< sheets
.length
; i
++) {
11 if (sheets
[i
].cssRules
.length
!= 1
12 || sheets
[i
].cssRules
[0].type
!= CSSRule
.STYLE_RULE
13 || sheets
[i
].cssRules
[0].style
.backgroundImage
=== "") {
17 document
.getElementById('result').innerHTML
= 'SUCCESS';
21 <link media=
"all" href=
"resources/background_image.css" rel=
"stylesheet">
22 <link media=
"aural" href=
"resources/background_image.css" rel=
"stylesheet">
23 <link media=
"braille" href=
"resources/background_image.css" rel=
"stylesheet">
24 <link media=
"embossed" href=
"resources/background_image.css" rel=
"stylesheet">
25 <link media=
"handheld" href=
"resources/background_image.css" rel=
"stylesheet">
26 <link media=
"print" href=
"resources/background_image.css" rel=
"stylesheet">
27 <link media=
"projection" href=
"resources/background_image.css" rel=
"stylesheet">
28 <link media=
"screen" href=
"resources/background_image.css" rel=
"stylesheet">
29 <link media=
"tty" href=
"resources/background_image.css" rel=
"stylesheet">
30 <link media=
"tv" href=
"resources/background_image.css" rel=
"stylesheet">
31 <link media=
"invalid" href=
"resources/background_image.css" rel=
"stylesheet">
33 <body onload=
"runTest()">
34 <p>Test that the styleSheet collection contains all sheets referenced through the
<link
> elements. See bug #
22429.
</p>
35 <div id=
"result">FAILURE
</div>