diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-02-25 15:07:00 -0500 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 12:55:19 +0200 |
commit | eb70e6e3d0bff11c25f14b1196025791bf2308fb (patch) | |
tree | 5ef4ce17db83c74d7b05ec12c8f59e095a6dd5bd /toolkit/components/console | |
parent | 32ead795290b3399d56b4708fc75b77d296f6a1a (diff) | |
download | UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.gz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.lz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.tar.xz UXP-eb70e6e3d0bff11c25f14b1196025791bf2308fb.zip |
Issue #439 - Remove tests from toolkit/
Diffstat (limited to 'toolkit/components/console')
-rw-r--r-- | toolkit/components/console/moz.build | 2 | ||||
-rw-r--r-- | toolkit/components/console/tests/chrome.ini | 3 | ||||
-rw-r--r-- | toolkit/components/console/tests/test_hugeURIs.xul | 64 |
3 files changed, 0 insertions, 69 deletions
diff --git a/toolkit/components/console/moz.build b/toolkit/components/console/moz.build index d730b9aa3..e9545267f 100644 --- a/toolkit/components/console/moz.build +++ b/toolkit/components/console/moz.build @@ -4,8 +4,6 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -MOCHITEST_CHROME_MANIFESTS += ['tests/chrome.ini'] - EXTRA_COMPONENTS += [ 'jsconsole-clhandler.js', 'jsconsole-clhandler.manifest', diff --git a/toolkit/components/console/tests/chrome.ini b/toolkit/components/console/tests/chrome.ini deleted file mode 100644 index 0480c3533..000000000 --- a/toolkit/components/console/tests/chrome.ini +++ /dev/null @@ -1,3 +0,0 @@ -[DEFAULT] - -[test_hugeURIs.xul] diff --git a/toolkit/components/console/tests/test_hugeURIs.xul b/toolkit/components/console/tests/test_hugeURIs.xul deleted file mode 100644 index 87a571e8d..000000000 --- a/toolkit/components/console/tests/test_hugeURIs.xul +++ /dev/null @@ -1,64 +0,0 @@ -<?xml version="1.0"?> -<?xml-stylesheet type="text/css" href="chrome://global/skin"?> -<?xml-stylesheet type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"?> -<!-- -https://bugzilla.mozilla.org/show_bug.cgi?id=796179 ---> -<window title="Mozilla Bug 796179" - xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" - onload="RunTest();"> - <script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"/> - - <!-- Detect severe performance and memory issues when large amounts of errors - are reported from CSS embedded in a file with a long data URI. Addressed - by 786108 for issues internal to the style system and by 796179 for issues - related to the error console. This error console test should finish quickly - with those patches and run for a very long time or OOM otherwise. --> - - <!-- test results are displayed in the html:body --> - <body xmlns="http://www.w3.org/1999/xhtml"> - <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=796179" - target="_blank">Mozilla Bug 796179</a> - <div id="badSVG" style="max-width: 1; max-height: 1; overflow: hidden"></div> - </body> - - <!-- display the error console so we can test its reaction to the test --> - <iframe id="errorConsoleFrame" height="400" src="chrome://global/content/console.xul"></iframe> - - <!-- test code --> - <script type="application/javascript"> - <![CDATA[ - function RunTest() - { - // Create the bad SVG and add it to the document. - var img = new Array; - img.push('<img src="data:image/svg+xml,'); - img.push(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="300px" height="300px">')); - - for (var i = 0 ; i < 10000 ; i++) - img.push(encodeURIComponent('<circle cx="0" cy="0" r="1" style="xxx-invalid-property: 0;"/>')); - - img.push(encodeURIComponent('</svg>')); - img.push('" />'); - - document.getElementById('badSVG').innerHTML = img.join(''); - - // We yield control of the thread, allowing the error console to render. - // If we get control back without timing out or OOMing then the test passed. - SimpleTest.waitForExplicitFinish(); - SimpleTest.executeSoon(function() { - // Clean up. - var elem = document.getElementById('errorConsoleFrame'); - elem.parentNode.removeChild(elem); - elem = document.getElementById('badSVG'); - elem.parentNode.removeChild(elem); - elem = null; - - // Finish the test with a pass. - ok(true, 'Error console rendered OK.'); - SimpleTest.finish(); - }, 0); - } - ]]> - </script> -</window> |