3 <script src=
"../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"syntax-highlight.js"></script>
9 function dumpSyntaxHighlightHTML(str
)
11 return InspectorTest
.dumpSyntaxHighlight(str
, "text/html");
14 dumpSyntaxHighlightHTML("<html>");
15 dumpSyntaxHighlightHTML("<table cellspacing=0>");
16 dumpSyntaxHighlightHTML("<input checked value=\"foo\">");
17 dumpSyntaxHighlightHTML("<table cellspacing=\"0\" cellpadding='0'>");
18 dumpSyntaxHighlightHTML("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">");
19 dumpSyntaxHighlightHTML("<!--div><div foobar-->");
20 dumpSyntaxHighlightHTML("<script></" + "script><!--div-->");
21 dumpSyntaxHighlightHTML("<script type=\"text/javascript\">document.write('<script type=\"text/javascript\"></' + 'script>');</" + "script>")
23 .then(InspectorTest
.completeTest
.bind(InspectorTest
));
29 <body onload=
"runTest()">
31 Tests that SourceHTMLTokenizer detects the tokens.