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

Side by Side Diff: LayoutTests/inspector/styles-url-linkify.html

Issue 6327025: Merge 76788 - 2011-01-27 Alexander Pavlov <apavlov@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/inspector/styles-url-linkify-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 src="../http/tests/inspector/inspector-test2.js"></script> 4 <script src="../http/tests/inspector/inspector-test2.js"></script>
5 <script src="elements-tests2.js"></script> 5 <script src="elements-tests2.js"></script>
6 <link rel="stylesheet" href="resources/styles-url-linkify.css"> 6 <link rel="stylesheet" href="resources/styles-url-linkify.css">
7 <script> 7 <script>
8 8
9 function runAfterIframeLoaded() 9 function runAfterIframeLoaded()
10 { 10 {
(...skipping 28 matching lines...) Expand all
39 for (var i = segments.length - 1, minSegment = i - 3; i >= 0 && i >= min Segment; --i) 39 for (var i = segments.length - 1, minSegment = i - 3; i >= 0 && i >= min Segment; --i)
40 output.unshift(segments[i]); 40 output.unshift(segments[i]);
41 InspectorTest.addResult(output.join("/")); 41 InspectorTest.addResult(output.join("/"));
42 } 42 }
43 43
44 function selectLocalElement() 44 function selectLocalElement()
45 { 45 {
46 InspectorTest.selectElementAndRun("local", executeLocalTest); 46 InspectorTest.selectElementAndRun("local", executeLocalTest);
47 } 47 }
48 48
49 function completeURL(baseURL, href)
50 {
51 InspectorTest.addResult(WebInspector.completeURL(baseURL, href));
52 }
53
54 function completeURLTest()
55 {
56 InspectorTest.addResult("Partial URLs completed:");
57 completeURL("http://example.com", "/");
58 completeURL("http://example.com", "moo");
59 completeURL("http://example.com/", "https://secure.com/moo");
60 completeURL("https://example.com/foo", "//secure.com/moo");
61 completeURL("http://example.com/foo/zoo", "/moo");
62 completeURL("http://example.com/foo/zoo/", "moo");
63 completeURL("http://example.com/foo/zoo", "boo/moo");
64 completeURL("http://example.com/foo", "moo");
65 completeURL("http://example.com/foo", "?a=b");
66 completeURL("http://example.com/foo?c=d", "?a=b");
67 }
68
49 function executeLocalTest() 69 function executeLocalTest()
50 { 70 {
71 completeURLTest();
51 InspectorTest.addResult("Link for a URI from CSS document:"); 72 InspectorTest.addResult("Link for a URI from CSS document:");
52 dumpHref(); 73 dumpHref();
53 InspectorTest.selectElementAndRun("iframed", executeIframedTest); 74 InspectorTest.selectElementAndRun("iframed", executeIframedTest);
54 } 75 }
55 76
56 function executeIframedTest() 77 function executeIframedTest()
57 { 78 {
58 InspectorTest.addResult("Link for a URI from iframe inline stylesheet:") ; 79 InspectorTest.addResult("Link for a URI from iframe inline stylesheet:") ;
59 dumpHref(); 80 dumpHref();
60 InspectorTest.completeTest(); 81 InspectorTest.completeTest();
61 } 82 }
62 83
63 InspectorTest.expandDOMSubtreeAndRun(null, selectLocalElement); 84 InspectorTest.expandDOMSubtreeAndRun(null, selectLocalElement);
64 } 85 }
65 86
66 </script> 87 </script>
67 </head> 88 </head>
68 <body onload="runAfterIframeLoaded()"> 89 <body onload="runAfterIframeLoaded()">
69 <p> 90 <p>
70 Tests that the Styles sidebar pane URLs are linked correctly. <a href="http://bu gs.webkit.org/show_bug.cgi?id=51663">Bug 51663</a> 91 Tests that URLs are linked to and completed correctly. Bugs <a href="http://bugs .webkit.org/show_bug.cgi?id=51663">51663</a>, <a href="http://bugs.webkit.org/sh ow_bug.cgi?id=53171">53171</a>
71 </p> 92 </p>
72 <div id="local"></div> 93 <div id="local"></div>
73 <iframe src="resources/styles-url-linkify-iframe.html"></iframe> 94 <iframe src="resources/styles-url-linkify-iframe.html"></iframe>
74 95
75 </body> 96 </body>
76 </html> 97 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/styles-url-linkify-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698