Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: LayoutTests/fast/css/quotes-parsing.html

Issue 1155983003: 'quotes' property is serialized wrongly on inline styles (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Formatted indentation correctly Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"';
16 assert_equals(div.style.quotes, '"a" "b"');
17 }, "Valid strings should be serialized with space separator");
13 </script> 18 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698