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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/styles-url-linkify-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/styles-url-linkify.html
===================================================================
--- LayoutTests/inspector/styles-url-linkify.html (revision 76937)
+++ LayoutTests/inspector/styles-url-linkify.html (working copy)
@@ -46,8 +46,29 @@
InspectorTest.selectElementAndRun("local", executeLocalTest);
}
+ function completeURL(baseURL, href)
+ {
+ InspectorTest.addResult(WebInspector.completeURL(baseURL, href));
+ }
+
+ function completeURLTest()
+ {
+ InspectorTest.addResult("Partial URLs completed:");
+ completeURL("http://example.com", "/");
+ completeURL("http://example.com", "moo");
+ completeURL("http://example.com/", "https://secure.com/moo");
+ completeURL("https://example.com/foo", "//secure.com/moo");
+ completeURL("http://example.com/foo/zoo", "/moo");
+ completeURL("http://example.com/foo/zoo/", "moo");
+ completeURL("http://example.com/foo/zoo", "boo/moo");
+ completeURL("http://example.com/foo", "moo");
+ completeURL("http://example.com/foo", "?a=b");
+ completeURL("http://example.com/foo?c=d", "?a=b");
+ }
+
function executeLocalTest()
{
+ completeURLTest();
InspectorTest.addResult("Link for a URI from CSS document:");
dumpHref();
InspectorTest.selectElementAndRun("iframed", executeIframedTest);
@@ -67,7 +88,7 @@
</head>
<body onload="runAfterIframeLoaded()">
<p>
-Tests that the Styles sidebar pane URLs are linked correctly. <a href="http://bugs.webkit.org/show_bug.cgi?id=51663">Bug 51663</a>
+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/show_bug.cgi?id=53171">53171</a>
</p>
<div id="local"></div>
<iframe src="resources/styles-url-linkify-iframe.html"></iframe>
« 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