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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-4/styles-update-links-4.html

Issue 2182393003: DevTools: split inspector/elements/styles-4/styles-update-links.html into 4 tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
(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 src="./styles-update-links.js"></script>
6 <style>
7 #pseudo::after {
8 pseudo-property: "12";
9 color: red;
10 }
11
12 #pseudo::after {
13 border: 1px solid black;
14 }
15
16 #pseudo::before {
17 color: blue;
18 }
19 </style>
20 <script>
21
22 function test()
23 {
24 InspectorTest.runTestSuite([
25 function selectNodeWithPseudoElements(next)
26 {
27 InspectorTest.selectNodeAndWaitForStyles("pseudo", next);
28 },
29
30 function testPseudoSectionPropertyEdit(next)
31 {
32 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("pseudo -property");
33 var treeElement = treeItem.section().addNewBlankProperty(1);
34 InspectorTest.waitForStyleApplied(onPropertyInserted);
35 treeElement.applyStyleText("PROPERTY: INSERTED;", true);
36
37 function onPropertyInserted()
38 {
39 InspectorTest.addResult("\n\n#### AFTER PROPERTY INSERTED ####\n \n");
40 InspectorTest.dumpSelectedElementStyles(true, false, true);
41 var rules = InspectorTest.getMatchedRules();
42 InspectorTest.validateRuleRanges("pseudo", rules, next);
43 }
44 }
45 ]);
46 }
47 </script>
48 <link rel="stylesheet" href="../styles/resources/styles-update-links-2.css"></li nk>
49 <link rel="stylesheet" href="../styles/resources/styles-update-links.css"></link >
50 </head>
51
52 <body onload="runTest()">
53 <p>
54 Tests that links are updated property when editing pseudo element property.
55 </p>
56
57 <div id="container" class="left-intact should-change">
58 Red text here.
59 </div>
60
61 <div id="other"></div>
62
63 <section id="pseudo"></div>
64
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698