michael@0: /* Any copyright is dedicated to the Public Domain.
michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */
michael@0:
michael@0: function test()
michael@0: {
michael@0: const SIMPLE = TEST_BASE_HTTP + "simple.css";
michael@0: const DOCUMENT_WITH_ONE_STYLESHEET = "data:text/html;charset=UTF-8," +
michael@0: encodeURIComponent(
michael@0: ["",
michael@0: "",
michael@0: "
",
michael@0: " Bug 870339",
michael@0: ' ',
michael@0: " ",
michael@0: " ",
michael@0: " ",
michael@0: ""
michael@0: ].join("\n"));
michael@0:
michael@0: waitForExplicitFinish();
michael@0: addTabAndOpenStyleEditors(1, function (aPanel) {
michael@0: let UI = aPanel.UI;
michael@0:
michael@0: // Spam the _onNewDocument callback multiple times before the
michael@0: // StyleEditorActor has a chance to respond to the first one.
michael@0: const SPAM_COUNT = 2;
michael@0: for (let i=0; i