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

Unified Diff: LayoutTests/css-parser/resources/property-parsing-test.js

Issue 545173003: Support scientific notation in CSS numbers/percentages/dimensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop parseSVGNumber; Add additional TC. Created 6 years, 3 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
« no previous file with comments | « LayoutTests/css-parser/counter-parsing.html ('k') | LayoutTests/css-parser/scientific-notation.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css-parser/resources/property-parsing-test.js
diff --git a/LayoutTests/css-parser/resources/property-parsing-test.js b/LayoutTests/css-parser/resources/property-parsing-test.js
index 672d13078ce5f42f4a626dbb81e0f0e3f7605939..308fd23033a6484262dea873906d9fbccc08f263 100644
--- a/LayoutTests/css-parser/resources/property-parsing-test.js
+++ b/LayoutTests/css-parser/resources/property-parsing-test.js
@@ -12,7 +12,10 @@ function convert_to_dashes(property) {
});
}
-function assert_valid_value(property, value) {
+function assert_valid_value(property, value, serializedValue) {
+ if (arguments.length != 3)
+ serializedValue = value;
+
test(function(){
assert_true(CSS.supports(convert_to_dashes(property), value));
}, "CSS.supports('" + property + "', '" + value + "') should return true");
@@ -27,6 +30,7 @@ function assert_valid_value(property, value) {
var div = document.createElement('div');
div.style[property] = value;
var readValue = div.style[property];
+ assert_equals(readValue, serializedValue);
div.style[property] = readValue;
assert_equals(div.style[property], readValue);
}, "Serialization should round-trip after setting e.style['" + property + "'] = '" + value + "'");
« no previous file with comments | « LayoutTests/css-parser/counter-parsing.html ('k') | LayoutTests/css-parser/scientific-notation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698