michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/publicdomain/zero/1.0/ michael@0: */ michael@0: michael@0: function test() { michael@0: let source = "about:blank"; michael@0: michael@0: waitForExplicitFinish(); michael@0: openViewSourceWindow(source, function(aWindow) { michael@0: let gBrowser = aWindow.gBrowser; michael@0: let docEl = aWindow.document.documentElement; michael@0: michael@0: is(gBrowser.contentDocument.title, source, "Correct document title"); michael@0: is(docEl.getAttribute("title"), michael@0: "Source of: " + source + ("nsILocalFileMac" in Components.interfaces ? "" : " - " + docEl.getAttribute("titlemodifier")), michael@0: "Correct window title"); michael@0: closeViewSourceWindow(aWindow, finish); michael@0: }); michael@0: }