| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 | 4 |
| 5 <style> | 5 <style> |
| 6 #target { | 6 #target { |
| 7 width: 100px; | 7 width: 100px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 transition: width 1s; | 9 transition: width 1s; |
| 10 } | 10 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 waitForProgress().then(t.step_func_done(() => { | 53 waitForProgress().then(t.step_func_done(() => { |
| 54 assert_true( | 54 assert_true( |
| 55 internals.isAnimatedCSSPropertyUseCounted(document, "width"), | 55 internals.isAnimatedCSSPropertyUseCounted(document, "width"), |
| 56 'After triggering the transition, width has been counted'); | 56 'After triggering the transition, width has been counted'); |
| 57 assert_false( | 57 assert_false( |
| 58 internals.isAnimatedCSSPropertyUseCounted(document, "height"), | 58 internals.isAnimatedCSSPropertyUseCounted(document, "height"), |
| 59 'Height is not animated, so not counted'); | 59 'Height is not animated, so not counted'); |
| 60 })); | 60 })); |
| 61 }, 'Using CSS transitions causes UseCounter to be incremented.'); | 61 }, 'Using CSS transitions causes UseCounter to be incremented.'); |
| 62 </script> | 62 </script> |
| OLD | NEW |