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

Side by Side Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html

Issue 2097093002: [Typed OM] Rename cssString methods to cssText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-transformvalue
Patch Set: Update usage in csspaint logging for tests Created 4 years, 5 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
OLDNEW
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 4
5 <div id="testElement"></div> 5 <div id="testElement"></div>
6 <div id="secondElement"></div> 6 <div id="secondElement"></div>
7 7
8 <script> 8 <script>
9 9
10 // This set of tests looks at properties that are not yet supported 10 // This set of tests looks at properties that are not yet supported
11 // by the typed OM. It will probably need to be updated as we start 11 // by the typed OM. It will probably need to be updated as we start
12 // supporting some of these properties. 12 // supporting some of these properties.
13 13
14 test(function() { 14 test(function() {
15 testElement.style.backgroundImage = 'url("")'; 15 testElement.style.backgroundImage = 'url("")';
16 16
17 var result = testElement.styleMap.get('background-image'); 17 var result = testElement.styleMap.get('background-image');
18 assert_equals(result.constructor, CSSStyleValue); 18 assert_equals(result.constructor, CSSStyleValue);
19 assert_equals(result.cssString, 'url("")'); 19 assert_equals(result.cssText, 'url("")');
20 }, 'Unsupported property returns a base StyleValue with the correct cssString.') ; 20 }, 'Unsupported property returns a base StyleValue with the correct cssText.');
21 21
22 test(function() { 22 test(function() {
23 testElement.style.backgroundImage = 'url("")'; 23 testElement.style.backgroundImage = 'url("")';
24 24
25 secondElement.styleMap.set('background-image', testElement.styleMap.get('backg round-image')); 25 secondElement.styleMap.set('background-image', testElement.styleMap.get('backg round-image'));
26 26
27 var result = secondElement.styleMap.get('background-image'); 27 var result = secondElement.styleMap.get('background-image');
28 assert_equals(result.constructor, CSSStyleValue); 28 assert_equals(result.constructor, CSSStyleValue);
29 assert_equals(result.cssString, 'url("")'); 29 assert_equals(result.cssText, 'url("")');
30 }, 'Setting the same property using the result of getting an unknown value works '); 30 }, 'Setting the same property using the result of getting an unknown value works ');
31 31
32 test(function() { 32 test(function() {
33 testElement.style.color = 'green'; 33 testElement.style.color = 'green';
34 34
35 secondElement.styleMap.set('border-left-color', testElement.styleMap.get('colo r')); 35 secondElement.styleMap.set('border-left-color', testElement.styleMap.get('colo r'));
36 36
37 var result = secondElement.styleMap.get('border-left-color'); 37 var result = secondElement.styleMap.get('border-left-color');
38 assert_equals(result.constructor, CSSStyleValue); 38 assert_equals(result.constructor, CSSStyleValue);
39 assert_equals(result.cssString, 'green'); 39 assert_equals(result.cssText, 'green');
40 }, 'Setting a different property using the result of getting an unknown value wo rks'); 40 }, 'Setting a different property using the result of getting an unknown value wo rks');
41 41
42 </script> 42 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698