Chromium Code Reviews| 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/22 00:06:45
You should test setting shorthands + checking long
nainar
2016/02/24 02:31:22
Done.
| |
| 12 } | |
| 13 </style> | |
| 14 | |
| 15 <div id="target"></div> | |
| 16 | |
| 17 <script> | |
| 18 var CSSPropertyColor = 2; //taken from CSSPropertyNames.h | |
| 19 var CSSPropertyBackgroundColor = 39; //taken from CSSPropertyNames.h | |
| 20 var CSSPropertyOpacity = 155; //taken from CSSPropertyNames.h | |
| 21 var CSSPropertyPaddingBottom = 165; //taken from CSSPropertyNames.h | |
| 22 var CSSPropertyPaddingLeft = 166; //taken from CSSPropertyNames.h | |
|
alancutter (OOO until 2018)
2016/02/22 00:06:45
CSSPropertyNames is generated, these numbers can c
nainar
2016/02/24 02:31:22
Done.
| |
| 23 | |
| 24 test(function() { | |
| 25 assert_true(window.internals.isCSSPropertyUseCounted(document, CSSProper tyColor)); | |
| 26 assert_true(window.internals.isCSSPropertyUseCounted(document, CSSProper tyBackgroundColor)); | |
| 27 assert_true(window.internals.isCSSPropertyUseCounted(document, CSSProper tyPaddingBottom)); | |
| 28 assert_true(window.internals.isCSSPropertyUseCounted(document, CSSProper tyPaddingLeft)); | |
| 29 assert_false(window.internals.isCSSPropertyUseCounted(document, CSSPrope rtyOpacity)); | |
|
alancutter (OOO until 2018)
2016/02/22 00:06:45
Why is this false?
nainar
2016/02/24 02:31:22
Isn't specified in the author style sheet
| |
| 30 }, "Test windows.internal.isCSSPropertyUseCounted functionality"); | |
| 31 | |
| 32 </script> | |
| OLD | NEW |