Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / parse-declaration-unterminated-comment.html
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     WebInspector.showPanel("elements");
10
11     InspectorTest.selectNodeAndWaitForStyles("inspected1", dumpStylesFirst);
12
13     function dumpStylesFirst()
14     {
15         InspectorTest.dumpSelectedElementStyles(true);
16         InspectorTest.selectNodeAndWaitForStyles("inspected2", dumpStylesSecond);
17     }
18
19     function dumpStylesSecond()
20     {
21         InspectorTest.dumpSelectedElementStyles(true);
22         InspectorTest.completeTest();
23     }
24 }
25 </script>
26 </head>
27
28 <body onload="runTest()">
29 <p>
30 Tests that CSSParser correctly parses declarations with unterminated comments.
31
32 <div id="inspected1" style="color: red /* foo: bar;"></div>
33 <div id="inspected2" style="color: green; /* foo: bar;"></div>
34 </body>
35 </html>