mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 15:43:10 -10:00
ESLint 2 now flags anonymous generator functions according to generator-star-spacing. Most of the changes here are correcting that. MozReview-Commit-ID: 9xg2Gmlaz94
31 lines
786 B
JavaScript
31 lines
786 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
"use strict";
|
|
|
|
// Test global exit button
|
|
|
|
const TEST_URL = "data:text/html;charset=utf-8,";
|
|
|
|
addRDMTask(TEST_URL, function* ({ ui, manager }) {
|
|
let { toolWindow } = ui;
|
|
let { store } = toolWindow;
|
|
|
|
// Wait until the viewport has been added
|
|
yield waitUntilState(store, state => state.viewports.length == 1);
|
|
|
|
let exitButton = toolWindow.document.getElementById("global-exit-button");
|
|
|
|
yield waitForFrameLoad(ui, TEST_URL);
|
|
|
|
ok(manager.isActiveForTab(ui.tab),
|
|
"Responsive Design Mode active for the tab");
|
|
|
|
exitButton.click();
|
|
|
|
yield once(manager, "off");
|
|
|
|
ok(!manager.isActiveForTab(ui.tab),
|
|
"Responsive Design Mode is not active for the tab");
|
|
});
|