7
7
// Entry point (must be named "test")
9
9
is(window.location.href, "chrome://browser/content/browser.xul", "Main window should be browser.xul");
13
13
let browser = Browser.selectedBrowser;
14
14
isnot(browser, null, "Should have a browser");
16
16
is(browser.currentURI.spec, Browser.selectedTab.browser.currentURI.spec, "selectedBrowser == selectedTab.browser");
18
18
testContentContainerSize();
21
21
function testContentContainerSize() {
22
let tiles = document.getElementById("tile-container");
23
let oldtilesstyle = tiles.getAttribute("style");
22
let container = document.getElementById("content-viewport");
26
tiles.style.width = (window.innerWidth + 100) + "px";
27
tiles.style.height = (window.innerHeight + 100) + "px";
28
let container = Browser.contentScrollbox;
29
let rect = container.getBoundingClientRect();
30
ok(rect.width == window.innerWidth, "Content container is same width as window");
31
ok(rect.height == window.innerHeight, "Content container is same height as window");
34
tiles.setAttribute("style", oldtilesstyle);
24
let rect = container.getBoundingClientRect();
25
is(rect.width, window.innerWidth, "Content container is same width as window");
26
is(rect.height, window.innerHeight, "Content container is same height as window");