OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 | |
5 <style> | |
6 div { | |
7 padding-left: 100px; | |
8 padding-bottom: 100px; | |
9 color:green; | |
10 background-color: blue; | |
11 opacity: 100px; | |
alancutter (OOO until 2018)
2016/02/24 02:45:52
We should make invalid values obvious e.g. "opacit
nainar
2016/02/24 03:34:25
Done.
| |
12 border: black solid 5px; | |
13 } | |
14 </style> | |
15 | |
16 <div id="target"></div> | |
17 | |
18 <script> | |
19 test(function() { | |
20 assert_true(window.internals.isCSSPropertyUseCounted(document, "color")) ; | |
alancutter (OOO until 2018)
2016/02/24 02:45:52
No need for "window.".
nainar
2016/02/24 03:34:25
Done.
| |
21 assert_true(window.internals.isCSSPropertyUseCounted(document, "backgrou nd-color")); | |
22 assert_true(window.internals.isCSSPropertyUseCounted(document, "padding- bottom")); | |
23 assert_true(window.internals.isCSSPropertyUseCounted(document, "padding- left")); | |
24 }, "Test setting and reading css properties"); | |
25 | |
26 test(function() { | |
27 assert_true(window.internals.isCSSPropertyUseCounted(document, "border") ) | |
28 assert_false(window.internals.isCSSPropertyUseCounted(document, "border- color")); | |
29 assert_false(window.internals.isCSSPropertyUseCounted(document, "border- style")); | |
30 assert_false(window.internals.isCSSPropertyUseCounted(document, "border- width")); | |
31 }, "Test setting a shorthand and reading longhand"); | |
32 | |
33 test(function() { | |
34 assert_false(window.internals.isCSSPropertyUseCounted(document, "opacity ")); | |
35 }, "Test windows.internal.isCSSPropertyUseCounted functionality - a property not set in author stylesheet should be false"); | |
alancutter (OOO until 2018)
2016/02/24 02:45:52
This description is a bit weird, it's actually tes
nainar
2016/02/24 03:34:25
Done.
| |
36 | |
37 </script> | |
OLD | NEW |