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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html

Issue 2893823002: [CSS Typed OM] Make CSSKeywordValue's value attribute mutable (Closed)
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html b/third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html
index 420f03076858e45a31e774ba7bd951013c71c327..c67b3888b24428a229acbf1574ab88be0eb42058 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/cssKeywordValue.html
@@ -17,12 +17,20 @@ test(function() {
'implies that toCSSValue supports all keywords including custom identifiers');
test(function() {
- assert_equals(new CSSKeywordValue('initial').keywordValue, 'initial');
- assert_equals(new CSSKeywordValue('center').keywordValue, 'center');
- assert_equals(new CSSKeywordValue('customLemon').keywordValue, 'customLemon');
- assert_equals(new CSSKeywordValue(' Hello World').keywordValue, ' Hello World');
- assert_equals(new CSSKeywordValue('3').keywordValue, '3');
-}, 'keywordValue returns a string equal to the string used in the constructor');
+ assert_equals(new CSSKeywordValue('initial').value, 'initial');
+ assert_equals(new CSSKeywordValue('center').value, 'center');
+ assert_equals(new CSSKeywordValue('customLemon').value, 'customLemon');
+ assert_equals(new CSSKeywordValue(' Hello World').value, ' Hello World');
+ assert_equals(new CSSKeywordValue('3').value, '3');
+}, 'value returns a string equal to the string used in the constructor');
+
+test(function() {
+ let keywordValue = new CSSKeywordValue('foo');
+ assert_equals(keywordValue.value, 'foo');
+
+ keywordValue.value = 'bar';
+ assert_equals(keywordValue.value, 'bar');
+}, 'The keyword used in KeywordValue can be updated');
</script>
<body>

Powered by Google App Engine
This is Rietveld 408576698