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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/supported-css-properties.html

Issue 2215253002: DevTools: do not use CSSMetadata instances for autocompletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-meta-data
Patch Set: address comments Created 4 years, 4 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/inspector/elements/styles-4/supported-css-properties.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/supported-css-properties.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/supported-css-properties.html
index 31f010f24f95f28922609981e18e2b4168d91d27..5d0bb643ba8d052311c83e1a9153165cd961e10c 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-4/supported-css-properties.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-4/supported-css-properties.html
@@ -5,8 +5,7 @@
function test()
{
var cssProperty = "box-shadow";
- var properties = WebInspector.CSSMetadata.cssPropertiesMetainfo.startsWith(cssProperty);
- if (properties.length)
+ if (WebInspector.CSSMetadata.cssPropertiesMetainfo.hasProperty(cssProperty))
InspectorTest.addResult(cssProperty + " is supported");
else
InspectorTest.addResult(cssProperty + " is NOT supported");

Powered by Google App Engine
This is Rietveld 408576698