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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="text/javascript" src="../../../http/tests/inspector/inspector-test .js"></script> 3 <script type="text/javascript" src="../../../http/tests/inspector/inspector-test .js"></script>
4 <script> 4 <script>
5 function test() 5 function test()
6 { 6 {
7 var cssProperty = "box-shadow"; 7 var cssProperty = "box-shadow";
8 var properties = WebInspector.CSSMetadata.cssPropertiesMetainfo.startsWith(c ssProperty); 8 if (WebInspector.CSSMetadata.cssPropertiesMetainfo.hasProperty(cssProperty))
9 if (properties.length)
10 InspectorTest.addResult(cssProperty + " is supported"); 9 InspectorTest.addResult(cssProperty + " is supported");
11 else 10 else
12 InspectorTest.addResult(cssProperty + " is NOT supported"); 11 InspectorTest.addResult(cssProperty + " is NOT supported");
13 var marginLonghands = WebInspector.CSSMetadata.cssPropertiesMetainfo.longhan ds("margin"); 12 var marginLonghands = WebInspector.CSSMetadata.cssPropertiesMetainfo.longhan ds("margin");
14 marginLonghands.sort(); 13 marginLonghands.sort();
15 InspectorTest.addResult("Margin longhands: " + marginLonghands.join(", ")); 14 InspectorTest.addResult("Margin longhands: " + marginLonghands.join(", "));
16 InspectorTest.completeTest(); 15 InspectorTest.completeTest();
17 } 16 }
18 </script> 17 </script>
19 </head> 18 </head>
20 <body onLoad="runTest();"> 19 <body onLoad="runTest();">
21 20
22 </body> 21 </body>
23 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698