Bug 1148893 - Part 18 - Clean up browser_styleeditor_bug_740541_iframes.js. r=bgrinstead

This commit is contained in:
Sami Jaktholm 2015-04-04 11:13:09 +03:00
parent 3d7d7eb730
commit 7240423cf8

View File

@ -1,7 +1,10 @@
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
function test()
// Test that sheets inside iframes are shown in the editor.
add_task(function* ()
{
function makeStylesheet(selector) {
@ -69,10 +72,8 @@ function test()
const EXPECTED_STYLE_SHEET_COUNT = 12;
waitForExplicitFinish();
let { ui } = yield openStyleEditorForURL(TESTCASE_URI);
// Wait for events until the right number of editors has been opened.
addTabAndOpenStyleEditors(EXPECTED_STYLE_SHEET_COUNT, () => finish());
content.location = TESTCASE_URI;
}
is(ui.editors.length, EXPECTED_STYLE_SHEET_COUNT,
"Got the expected number of style sheets.");
});