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 div.style.quotes = '"a" "b"'; |
13 assert_equals(div.style.quotes, "\"a\" \"b\""); | |
Timothy Loh
2015/05/27 09:11:37
If you use a single-quoted string, you don't need
ramya.v
2015/05/27 09:22:15
Done.
| |
14 }, "Invalid strings for quotes property do not parse and valid strings should be serialized by space separator"); | |
Timothy Loh
2015/05/27 09:11:37
Can you pull out the added test into a separate te
ramya.v
2015/05/27 09:22:15
Done.
| |
13 </script> | 15 </script> |
OLD | NEW |