Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / quotes-parsing.html
blob67650874f0dda074e0f47c7eefb0d2fc297fa728
1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3 <div id="div"></div>
4 <script>
5 test(function(){
6 div.style.quotes = "red";
7 assert_equals(div.style.quotes, "");
8 div.style.quotes = '"a"';
9 assert_equals(div.style.quotes, "");
10 div.style.quotes = '"a" "b" cake';
11 assert_equals(div.style.quotes, "");
12 }, "Invalid strings for quotes property do not parse");
14 test(function(){
15 div.style.quotes = '"a" "b"';
16 assert_equals(div.style.quotes, '"a" "b"');
17 }, "Valid strings should be serialized with space separator");
18 </script>