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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/property-suite.js

Issue 2583063002: Add common test configs for properties that take lengths (Closed)
Patch Set: Remove extra whitespace Created 3 years, 9 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/properties/property-suite.js
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/property-suite.js b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/property-suite.js
index 5dbcaaf893355e675291428df1692948ce1604a2..2fb204a40a258f514136ccbcc7b90542927d617b 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/property-suite.js
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/property-suite.js
@@ -1,5 +1,5 @@
/**
- * @fileoverview A standard set of tests for using a single property in an
+ * A standard set of tests for using a single property in an
* inline StylePropertyMap
* (https://www.w3.org/TR/css-typed-om-1/#the-stylepropertymap).
*
@@ -29,6 +29,10 @@
function runInlineStylePropertyMapTests(config) {
let element = document.createElement('div');
document.documentElement.appendChild(element);
+ if (!config.validKeywords) {
+ throw new Error('Must specify valid keywords (may be the empty list if ' +
+ 'only css-wide keywords apply)');
+ }
let validKeywords = config.validKeywords.concat([
// CSS-wide keywords
'initial',

Powered by Google App Engine
This is Rietveld 408576698