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

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

Issue 2222863002: [Typed-OM] Enable getting CSSURLImageValue from stylemap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CSSProperties_Image
Patch Set: Rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html
index 6925f9ab82e9dd95c0a214f7ca8e96931ebadada..f9257e19e21dd0c49a10df92c0fc44dfbc229600 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/unsupported-properties.html
@@ -12,21 +12,21 @@
// supporting some of these properties.
test(function() {
- testElement.style.backgroundImage = 'url("")';
+ testElement.style.backgroundColor = 'green';
- var result = testElement.styleMap.get('background-image');
+ var result = testElement.styleMap.get('background-color');
assert_equals(result.constructor, CSSStyleValue);
- assert_equals(result.cssText, 'url("")');
+ assert_equals(result.cssText, 'green');
}, 'Unsupported property returns a base StyleValue with the correct cssText.');
test(function() {
- testElement.style.backgroundImage = 'url("")';
+ testElement.style.backgroundColor = 'green';
- secondElement.styleMap.set('background-image', testElement.styleMap.get('background-image'));
+ secondElement.styleMap.set('background-color', testElement.styleMap.get('background-color'));
- var result = secondElement.styleMap.get('background-image');
+ var result = secondElement.styleMap.get('background-color');
assert_equals(result.constructor, CSSStyleValue);
- assert_equals(result.cssText, 'url("")');
+ assert_equals(result.cssText, 'green');
}, 'Setting the same property using the result of getting an unknown value works');
test(function() {

Powered by Google App Engine
This is Rietveld 408576698