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

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

Issue 1612893002: Re-add re-named typed CSS OM tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deletetests
Patch Set: make sure most up to date versions are used Created 4 years, 11 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/numberValue.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/numberValue.html b/third_party/WebKit/LayoutTests/typedcssom/numberValue.html
new file mode 100644
index 0000000000000000000000000000000000000000..7d6f7e920f98dce30ee9faafec40afc7e1ed2324
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/typedcssom/numberValue.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<script>
+var values = [
+ {input: new NumberValue(0), cssString: '0'},
+ {input: new NumberValue(1), cssString: '1'},
+ {input: new NumberValue(-2), cssString: '-2'},
+ {input: new NumberValue(3.4), cssString: '3.4'}
+];
+
+test(function() {
+ for (var i = 0; i < values.length; ++i) {
+ assert_equals(values[i].input.cssString, values[i].cssString);
+ }
+}, "Test that the css string for NumberValue is correct.");
+
+</script>
+
+<body>
+</body>
+

Powered by Google App Engine
This is Rietveld 408576698