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

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

Issue 1957163002: Rename KeywordValue to CSSKeywordValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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/keywordValue.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/keywordValue.html b/third_party/WebKit/LayoutTests/typedcssom/keywordValue.html
deleted file mode 100644
index 7ecbee58a92a92dd920646dd372e6b78da02211f..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/typedcssom/keywordValue.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<script src='../resources/testharness.js'></script>
-<script src='../resources/testharnessreport.js'></script>
-<script>
-
-test(function() {
- assert_throws(TypeError(), function() { new KeywordValue("") });
-}, "Constructor should throw an error if given an empty string");
-
-//This test fails due to bug: 584999
-test(function() {
- assert_equals(new KeywordValue('initial').cssString, 'initial');
- assert_equals(new KeywordValue('center').cssString, 'center');
- assert_equals(new KeywordValue('customLemon').cssString, 'customLemon');
- assert_equals(new KeywordValue(' Hello World').cssString, CSS.escape(' Hello World'));
- assert_equals(new KeywordValue('3').cssString, CSS.escape('3'));
-}, 'cssString returns a string with a format similar to CSS.escape. This test also ' +
- 'implies that toCSSValue supports all keywords including custom identifiers');
-
-test(function() {
- assert_equals(new KeywordValue('initial').keywordValue, 'initial');
- assert_equals(new KeywordValue('center').keywordValue, 'center');
- assert_equals(new KeywordValue('customLemon').keywordValue, 'customLemon');
- assert_equals(new KeywordValue(' Hello World').keywordValue, ' Hello World');
- assert_equals(new KeywordValue('3').keywordValue, '3');
-}, 'keywordValue returns a string equal to the string used in the constructor');
-
-</script>
-<body>
-</body>

Powered by Google App Engine
This is Rietveld 408576698