1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/viewsource/test/browser/browser_bug464222.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +const source = "http://example.com/browser/toolkit/components/viewsource/test/browser/file_bug464222.html"; 1.5 + 1.6 +function test() { 1.7 + waitForExplicitFinish(); 1.8 + testSelection(); 1.9 +} 1.10 + 1.11 +function testSelection() { 1.12 + openDocumentSelect(source, "a", function(aWindow) { 1.13 + let aTags = aWindow.gBrowser.contentDocument.querySelectorAll("a[href]"); 1.14 + is(aTags[0].href, "view-source:" + source, "Relative links broken?"); 1.15 + closeViewSourceWindow(aWindow, finish); 1.16 + }); 1.17 +}