OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 <style id="style" media="screen"> | 4 <style id="style" media="screen"> |
5 .non-existent-class { | 5 .non-existent-class { |
6 color: rgb(0, 0, 0); | 6 color: rgb(0, 0, 0); |
7 clip: rect(0, 0, 1, 1); | |
8 content: counter(dummy, square); | |
9 } | 7 } |
10 </style> | 8 </style> |
11 </head> | 9 </head> |
12 <body> | 10 <body> |
13 <script> | 11 <script> |
14 | 12 |
15 if (window.testRunner) | 13 if (window.testRunner) |
16 testRunner.waitUntilDone(); | 14 testRunner.waitUntilDone(); |
17 | 15 |
18 function classString(node) | 16 function classString(node) |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 111 |
114 debug(''); | 112 debug(''); |
115 debug('CSS DOM'); | 113 debug('CSS DOM'); |
116 debug(''); | 114 debug(''); |
117 | 115 |
118 test("document.styleSheets", "StyleSheetList"); | 116 test("document.styleSheets", "StyleSheetList"); |
119 test("stylesheet", "CSSStyleSheet"); | 117 test("stylesheet", "CSSStyleSheet"); |
120 test("stylesheet.cssRules", "CSSRuleList"); | 118 test("stylesheet.cssRules", "CSSRuleList"); |
121 test("stylesheet.cssRules.item(0)", "CSSStyleRule"); | 119 test("stylesheet.cssRules.item(0)", "CSSStyleRule"); |
122 test("stylesheet.cssRules.item(0).style", "CSSStyleDeclaration"); | 120 test("stylesheet.cssRules.item(0).style", "CSSStyleDeclaration"); |
123 test("stylesheet.cssRules.item(0).style.getPropertyCSSValue('color')", "CSSP
rimitiveValue"); | |
124 test("stylesheet.cssRules.item(0).style.getPropertyCSSValue('color').getRGBC
olorValue()", "RGBColor"); | |
125 test("stylesheet.cssRules.item(0).style.getPropertyCSSValue('clip').getRectV
alue()", "Rect"); | |
126 test("stylesheet.cssRules.item(0).style.getPropertyCSSValue('content')", "CS
SValueList"); | |
127 test("stylesheet.cssRules.item(0).style.getPropertyCSSValue('content').item(
0).getCounterValue()", "Counter"); | |
128 test("stylesheet.media", "MediaList"); | 121 test("stylesheet.media", "MediaList"); |
129 | 122 |
130 debug(''); | 123 debug(''); |
131 debug('XPath'); | 124 debug('XPath'); |
132 debug(''); | 125 debug(''); |
133 | 126 |
134 test("document.createExpression('//*', document.createNSResolver(document))"
, "XPathExpression"); | 127 test("document.createExpression('//*', document.createNSResolver(document))"
, "XPathExpression"); |
135 test("document.evaluate('//*', document, document.createNSResolver(document)
, 0, null)", "XPathResult"); | 128 test("document.evaluate('//*', document, document.createNSResolver(document)
, 0, null)", "XPathResult"); |
136 | 129 |
137 debug(''); | 130 debug(''); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 testTag("xmp", "HTMLPreElement"); | 262 testTag("xmp", "HTMLPreElement"); |
270 | 263 |
271 // Not yet tested: | 264 // Not yet tested: |
272 | 265 |
273 // CSSCharsetRule | 266 // CSSCharsetRule |
274 // CSSFontFaceRule | 267 // CSSFontFaceRule |
275 // CSSImportRule | 268 // CSSImportRule |
276 // CSSMediaRule | 269 // CSSMediaRule |
277 // CSSPageRule | 270 // CSSPageRule |
278 // CSSRule | 271 // CSSRule |
279 // CSSVariablesRule | |
280 // WebKitCSSKeyframeRule | 272 // WebKitCSSKeyframeRule |
281 // WebKitCSSKeyframesRule | 273 // WebKitCSSKeyframesRule |
282 // CSSValue | |
283 // SVGColor | 274 // SVGColor |
284 // SVGPaint | 275 // SVGPaint |
285 // SVGZoomEvent | 276 // SVGZoomEvent |
286 | 277 |
287 // Conditional elements, VIDEO, RUBY. | 278 // Conditional elements, VIDEO, RUBY. |
288 | 279 |
289 // the various window sub-objects | 280 // the various window sub-objects |
290 | 281 |
291 // what else is missing? | 282 // what else is missing? |
292 | 283 |
293 if (window.testRunner) | 284 if (window.testRunner) |
294 testRunner.notifyDone(); | 285 testRunner.notifyDone(); |
295 } | 286 } |
296 | 287 |
297 function frameLoaded() | 288 function frameLoaded() |
298 { | 289 { |
299 runTest(); | 290 runTest(); |
300 } | 291 } |
301 | 292 |
302 </script> | 293 </script> |
303 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic
ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe> | 294 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:applic
ation/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe> |
304 </body> | 295 </body> |
305 </html> | 296 </html> |
OLD | NEW |