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

Side by Side Diff: LayoutTests/inspector/elements/styles/mixed-case-color-aware-properties.html

Issue 376803002: [DevTools] Color values should be case insensitive while suggestions should be case aware (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing! Created 6 years, 5 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script>
6
7 function test()
8 {
9 var colorAwareProperties = ["bAckground-ColoR", "COloR", "Border-coLoR", "bo rder-right-color", "BOX-SHADOW"];
10 for (var i = 0; i < colorAwareProperties.length; ++i) {
11 if (WebInspector.CSSMetadata.isColorAwareProperty(colorAwareProperties[i ]))
apavlov 2014/07/14 12:23:42 braces presence must be consistent across if-arms
apavlov 2014/07/14 12:23:42 We should rely on test expectations rather than so
vivekg 2014/07/14 17:57:51 Done.
vivekg 2014/07/14 17:57:51 Done.
12 result = "PASS";
13 else {
14 result = "FAIL: " + colorAwareProperties[i] + " is not listed as col or aware property.";
15 break;
16 }
17 }
18 InspectorTest.addResult("Result: " + result);
19 InspectorTest.completeTest();
20 }
21 </script>
22 </head>
23
24 <body onload="runTest()">
25 <p>
26 Tests that color related mixed-cased CSS properties are really color aware.
apavlov 2014/07/14 12:23:42 color related -> color-related mixed-cased -> mix-
vivekg 2014/07/14 17:57:51 Done.
27 </p>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698