Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-frameworks / frameworks-blackbox-patterns.html
bloba7be5db4aef40f701783bb3ea2b5569d8a11831b
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function test()
8 var testCases = [
9 "http://www.example.com/foo/jquery-1.7-min.js", "/jquery\\-1\\.7\\-min\\.js$",
10 "https://www.example.com/jquery.js?version=1.7", "/jquery\\.js\\b",
11 "http://www.google.com/jsapi", "/jsapi$",
12 "https://www.google.com/jsapi/", "/jsapi/$",
13 "http://www.google.com", "www\\.google\\.com$",
14 "http://www.google.com/", "www\\.google\\.com\\b",
15 "data:text/html,foo", "",
16 "about:blank", "",
17 "", "^$",
18 "chrome-extension://extensionName/main.js", "^chrome-extension://extensionName\\b.*/main\\.js$",
19 "extensions::unload_events", "^extensions::unload_events$",
22 for (var i = 0; i < testCases.length; i += 2) {
23 var url = testCases[i];
24 InspectorTest.addResult("Testing \"" + url + "\"");
25 var regexValue = WebInspector.BlackboxSupport._urlToRegExpString(url);
26 InspectorTest.assertEquals(testCases[i + 1], regexValue);
27 if (!regexValue)
28 continue;
29 var regex = new RegExp(regexValue);
30 InspectorTest.assertTrue(regex.test(url), "FAIL: Generated RegExp does not match the URL");
33 InspectorTest.addResult("\nPASS");
34 InspectorTest.completeTest();
37 </script>
38 </head>
40 <body onload="runTest()">
41 <p>
42 Tests framework blackbox patterns for various URLs.
43 </p>
44 </body>
45 </html>