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

Side by Side Diff: LayoutTests/inspector/elements/styles/edit-value-url-with-color.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
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 maxIndex = 11;
10 var idIndex = 1;
11
12 WebInspector.ColowSwatchPopoverIcon._colorFormat = function() {
13 return WebInspector.Color.Format.RGB;
14 };
15
16 selectDivAndEditValue();
17
18 function selectDivAndEditValue()
19 {
20 InspectorTest.selectNodeAndWaitForStyles("inspected" + idIndex++, editCa llback);
21 }
22
23 function editCallback()
24 {
25 var treeElement = InspectorTest.getMatchedStylePropertyTreeItem("backgro und");
26 treeElement.startEditing(treeElement.valueElement);
27 InspectorTest.addResult(treeElement.valueElement.textContent);
28 if (idIndex <= maxIndex)
29 selectDivAndEditValue();
30 else
31 InspectorTest.completeTest();
32 }
33 }
34
35 </script>
36 </head>
37
38 <body onload="runTest()">
39 <p>
40 Tests that colors are not re-formatted inside url(...) when editing property val ues.
41 </p>
42
43 <div id="inspected1" style="background: white">"white" background</div>
44 <div id="inspected2" style="background: url( white )">"url( white )" background< /div>
45 <div id="inspected3" style="background: url(white.png)">"url(white.png)" backgro und</div>
46 <div id="inspected4" style="background: url(../foo/white.png)">"url(../foo/white .png)" background</div>
47 <div id="inspected5" style="background: green url(white)">"green url(white)" bac kground</div>
48 <div id="inspected6" style="background: url(white) green">"url(white) green" bac kground</div>
49 <div id="inspected7" style="background: url(white) green, url(green)">"url(white ) green, url(green)" background</div>
50 <div id="inspected8" style="background: url(white), url(green)">"url(white), url (green)" background</div>
51 <div id="inspected9" style="background: hsl(0, 50%, 50%) url(white)">"hsl(0, 50% , 50%) url(white)" background</div>
52 <div id="inspected10" style="background: url(white) hsl(0, 50%, 50%)">"url(white ) hsl(0, 50%, 50%)" background</div>
53 <div id="inspected11" style="background: url(../black/white.png)">"url(../black/ white.png)" background</div>
54
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698