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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/autocomplete-scss.html

Issue 2215253002: DevTools: do not use CSSMetadata instances for autocompletion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-meta-data
Patch Set: address comments 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <link rel="stylesheet" href="./resources/empty.css"> 3 <link rel="stylesheet" href="./resources/empty.css">
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/debugger-test.js"></script> 5 <script src="../../http/tests/inspector/debugger-test.js"></script>
6 <script src="./autocomplete-test.js"></script> 6 <script src="./autocomplete-test.js"></script>
7 <script src="../editor/editor-test.js"></script> 7 <script src="../editor/editor-test.js"></script>
8 <script> 8 <script>
9 function test() 9 function test()
10 { 10 {
11 InspectorTest.showScriptSource("empty.scss", onSourceFrame); 11 InspectorTest.showScriptSource("empty.scss", onSourceFrame);
12 12
13 var dumpSuggestions; 13 var dumpSuggestions;
14 function onSourceFrame(sourceFrame) 14 function onSourceFrame(sourceFrame)
15 { 15 {
16 dumpSuggestions = InspectorTest.dumpSuggestions.bind(InspectorTest, sour ceFrame.textEditor); 16 dumpSuggestions = InspectorTest.dumpSuggestions.bind(InspectorTest, sour ceFrame.textEditor);
17 InspectorTest.runTestSuite(testSuite); 17 InspectorTest.runTestSuite(testSuite);
18 } 18 }
19 19
20
21 var testSuite = [ 20 var testSuite = [
22 function testPropertyValueSuggestions(next) 21 function testPropertyValueSuggestions(next)
23 { 22 {
24 dumpSuggestions([ 23 dumpSuggestions([
25 "@mixin my-border-style($style) {", 24 "@mixin my-border-style($style) {",
26 " border-style: |$;", 25 " border-style: |$;",
27 "}" 26 "}"
28 ]); 27 ]);
29 dumpSuggestions([ 28 dumpSuggestions([
30 "@mixin my-border-style($style) {", 29 "@mixin my-border-style($style) {",
31 " border-style: $|;", 30 " border-style: $|;",
32 "}" 31 "}"
33 ]); 32 ]);
34 next(); 33 next();
35 }, 34 },
36 ]; 35 ];
37 } 36 }
38 37
39 </script> 38 </script>
40 </head> 39 </head>
41 40
42 <body onload="runTest();"> 41 <body onload="runTest();">
43 <p> 42 <p>
44 The test verifies autocomplete suggestions for SCSS file. 43 The test verifies autocomplete suggestions for SCSS file.
45 </p> 44 </p>
46 </body> 45 </body>
47 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698