diff options
author | Matt A. Tobin <email@mattatobin.com> | 2014-07-02 00:07:24 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2014-07-02 05:58:53 -0400 |
commit | 77707b62085f862709562185e615634e7431080a (patch) | |
tree | cb1d173d0dbae3332df6d4a1160336e04c2286a7 /browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js | |
parent | 432326d2eae38aaacaeff9e790a2835d6578ee3b (diff) | |
download | palemoon-gre-77707b62085f862709562185e615634e7431080a.tar.gz |
Remove tests from /browser (except /browser/metro)
Diffstat (limited to 'browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js')
-rw-r--r-- | browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js b/browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js deleted file mode 100644 index 6daa0f4f8..000000000 --- a/browser/devtools/styleeditor/test/browser_styleeditor_bug_870339.js +++ /dev/null @@ -1,46 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ */ - -function test() -{ - const SIMPLE = TEST_BASE_HTTP + "simple.css"; - const DOCUMENT_WITH_ONE_STYLESHEET = "data:text/html;charset=UTF-8," + - encodeURIComponent( - ["<!DOCTYPE html>", - "<html>", - " <head>", - " <title>Bug 870339</title>", - ' <link rel="stylesheet" type="text/css" href="'+SIMPLE+'">', - " </head>", - " <body>", - " </body>", - "</html>" - ].join("\n")); - - waitForExplicitFinish(); - addTabAndOpenStyleEditor(function (aPanel) { - let debuggee = aPanel._debuggee; - - // Spam the _onNewDocument callback multiple times before the - // StyleEditorActor has a chance to respond to the first one. - const SPAM_COUNT = 2; - for (let i=0; i<SPAM_COUNT; ++i) { - debuggee._onNewDocument(); - } - - // Wait for the StyleEditorActor to respond to each "newDocument" - // message. - let loadCount = 0; - debuggee.on("document-load", function () { - ++loadCount; - if (loadCount == SPAM_COUNT) { - // No matter how large SPAM_COUNT is, the number of style - // sheets should never be more than the number of style sheets - // in the document. - is(debuggee.styleSheets.length, 1, "correct style sheet count"); - finish(); - } - }); - }); - content.location = DOCUMENT_WITH_ONE_STYLESHEET; -} |