Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / autocomplete-scss.html
blob2cb2cd1c95358673c5b096e590f599aa3efaf681
1 <html>
2 <head>
3 <link rel="stylesheet" href="./resources/empty.css">
4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/debugger-test.js"></script>
6 <script src="./autocomplete-test.js"></script>
7 <script src="../editor/editor-test.js"></script>
8 <script>
9 function test()
11 InspectorTest.showScriptSource("empty.scss", onSourceFrame);
13 var dumpSuggestions;
14 function onSourceFrame(sourceFrame)
16 dumpSuggestions = InspectorTest.dumpSuggestions.bind(InspectorTest, sourceFrame.textEditor);
17 InspectorTest.runTestSuite(testSuite);
21 var testSuite = [
22 function testPropertyValueSuggestions(next)
24 dumpSuggestions([
25 "@mixin my-border-style($style) {",
26 " border-style: |$;",
27 "}"
28 ]);
29 dumpSuggestions([
30 "@mixin my-border-style($style) {",
31 " border-style: $|;",
32 "}"
33 ]);
34 next();
39 </script>
40 </head>
42 <body onload="runTest();">
43 <p>
44 The test verifies autocomplete suggestions for SCSS file.
45 </p>
46 </body>
47 </html>