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 <script> | 4 <script> |
5 test(function(){ | 5 test(function(){ |
6 var div = document.createElement('div'); | 6 var div = document.createElement('div'); |
7 div.style.animationName = 'anim'; | 7 div.style.animationName = 'anim'; |
8 assert_equals(div.style.cssText, 'animation-name: anim;'); | 8 assert_equals(div.style.cssText, 'animation-name: anim;'); |
| 9 div.style.animationName = "\\ "; |
| 10 assert_equals(div.style.cssText, 'animation-name: \\ ;'); |
9 div.style.animation = 'hello 2s'; | 11 div.style.animation = 'hello 2s'; |
10 assert_equals(div.style.cssText, 'animation: hello 2s;'); | 12 assert_equals(div.style.cssText, 'animation: hello 2s;'); |
11 }, 'cssText serializes animation properties sanely'); | 13 }, 'cssText serializes animation properties sanely'); |
12 </script> | 14 </script> |
OLD | NEW |