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

Side by Side Diff: LayoutTests/inspector/documentation/document-parser.html

Issue 460323002: DevTools: Allow dynamic module registration only in tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 5
6 function test() 6 function test()
7 { 7 {
8 runtime.registerModule("documentation"); 8 InspectorTest.registerModule("documentation", true);
9 runtime.loadModule("documentation");
10 var testCases = [ 9 var testCases = [
11 "{{A|B={{C|D=blablabla}}}}", 10 "{{A|B={{C|D=blablabla}}}}",
12 "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Descrip tion=[[css/color|CSS color value]]}}\n}}", 11 "{{CS|Init=black|Values={{CSS Property Value\n|Data Type=color\n|Descrip tion=[[css/color|CSS color value]]}}\n}}",
13 "{{A}}", 12 "{{A}}",
14 "{{A|B=bla<a=c>bla}}", 13 "{{A|B=bla<a=c>bla}}",
15 "{{A}}", 14 "{{A}}",
16 "{{AbC|xyz \n \t \r}}"]; 15 "{{AbC|xyz \n \t \r}}"];
17 for (var i = 0; i < testCases.length; i++) { 16 for (var i = 0; i < testCases.length; i++) {
18 var wikiParser = new WebInspector.WikiParser(testCases[i]); 17 var wikiParser = new WebInspector.WikiParser(testCases[i]);
19 InspectorTest.addResult("\"" + testCases[i].replace("\r", "\\r") + "\" i s parsed"); 18 InspectorTest.addResult("\"" + testCases[i].replace("\r", "\\r") + "\" i s parsed");
(...skipping 11 matching lines...) Expand all
31 InspectorTest.completeTest(); 30 InspectorTest.completeTest();
32 } 31 }
33 32
34 </script> 33 </script>
35 </head> 34 </head>
36 35
37 <body onload="runTest()"> 36 <body onload="runTest()">
38 37
39 </body> 38 </body>
40 </html> 39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/layers-test.js ('k') | LayoutTests/inspector/documentation/documentation-url-provider.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698