Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-4 / styles-edit-property-after-invalid-rule.html
blobce787fd85593beb1f83d7bc305438f6c80559146
1 <html>
2 <head>
4 <style type="text/css" media="screen">
5 /* Invalid selector */
6 .navbar-search .search-query:-moz-placeholder {
7 color: #cccccc;
10 #container {
11 padding: 15px;
13 </style>
15 <script src="../../../http/tests/inspector/inspector-test.js"></script>
16 <script src="../../../http/tests/inspector/elements-test.js"></script>
17 <script>
19 function test()
21 InspectorTest.selectNodeAndWaitForStyles("container", step1);
23 function step1()
25 InspectorTest.addResult("Initial value");
26 InspectorTest.dumpSelectedElementStyles(true, false, true);
28 var treeItem = InspectorTest.getMatchedStylePropertyTreeItem("padding");
29 treeItem.applyStyleText("padding: 20px", false);
30 InspectorTest.waitForStyles("container", step2);
33 function step2()
35 InspectorTest.addResult("After changing property");
36 InspectorTest.dumpSelectedElementStyles(true, false, true);
37 InspectorTest.completeTest();
41 </script>
42 </head>
44 <body onload="runTest()">
45 <p>
46 Tests that proper source lines are reported for the styles after unrecognizer / invalid selector.
47 </p>
49 <div id="container"></div>
51 </body>
52 </html>