OLD | NEW |
---|---|
1 <script src="../../resources/testharness.js"></script> | 1 <script src="../../resources/testharness.js"></script> |
2 <script src="../../resources/testharnessreport.js"></script> | 2 <script src="../../resources/testharnessreport.js"></script> |
3 <div id="div"></div> | 3 <div id="div"></div> |
4 <script> | 4 <script> |
5 test(function(){ | 5 test(function(){ |
6 div.style.quotes = "red"; | 6 div.style.quotes = "red"; |
7 assert_equals(div.style.quotes, ""); | 7 assert_equals(div.style.quotes, ""); |
8 div.style.quotes = '"a"'; | 8 div.style.quotes = '"a"'; |
9 assert_equals(div.style.quotes, ""); | 9 assert_equals(div.style.quotes, ""); |
10 div.style.quotes = '"a" "b" cake'; | 10 div.style.quotes = '"a" "b" cake'; |
11 assert_equals(div.style.quotes, ""); | 11 assert_equals(div.style.quotes, ""); |
12 }, "Invalid strings for quotes property do not parse"); | 12 }, "Invalid strings for quotes property do not parse"); |
13 | |
14 test(function(){ | |
15 div.style.quotes = '"a" "b"'; | |
Timothy Loh
2015/05/27 09:45:55
extra indentation here?
ramya.v
2015/05/27 09:51:48
Done.
| |
16 assert_equals(div.style.quotes, '"a" "b"'); | |
17 }, "Valid strings should be serialized with space separator"); | |
13 </script> | 18 </script> |
OLD | NEW |