From 85783779fe87df966b07183171a929e589a9c278 Mon Sep 17 00:00:00 2001 From: Bobby Holley Date: Fri, 12 Apr 2013 15:34:00 -0400 Subject: [PATCH] Bug 770840 - Remove XPConnect test that explicitly runs JS on a seperate thread. v1 --- js/xpconnect/tests/unit/test_bug608142.js | 35 ----------------------- js/xpconnect/tests/unit/xpcshell.ini | 1 - 2 files changed, 36 deletions(-) delete mode 100644 js/xpconnect/tests/unit/test_bug608142.js diff --git a/js/xpconnect/tests/unit/test_bug608142.js b/js/xpconnect/tests/unit/test_bug608142.js deleted file mode 100644 index 6eb938760fd3..000000000000 --- a/js/xpconnect/tests/unit/test_bug608142.js +++ /dev/null @@ -1,35 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- - * vim: sw=4 ts=4 sts=4 et - * This Source Code Form is subject to the terms of the Mozilla Public - * 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/. */ - -function run_test() { - var tm = Components.classes["@mozilla.org/thread-manager;1"].getService(); - var thr = tm.newThread(0); - - var foundThreadError = false; - - var listener = { - observe: function(message) { - if (/JS function on a different thread/.test(message.message)) - foundThreadError = true; - } - }; - - var cs = Components.classes["@mozilla.org/consoleservice;1"]. - getService(Components.interfaces.nsIConsoleService); - cs.registerListener(listener); - - thr.dispatch({ - run: function() { - do_check_true(false); - } - }, Components.interfaces.nsIThread.DISPATCH_NORMAL); - - thr.shutdown(); - - cs.unregisterListener(listener); - do_check_true(foundThreadError); -} - diff --git a/js/xpconnect/tests/unit/xpcshell.ini b/js/xpconnect/tests/unit/xpcshell.ini index 3db8ba3d330b..1889a5b55046 100644 --- a/js/xpconnect/tests/unit/xpcshell.ini +++ b/js/xpconnect/tests/unit/xpcshell.ini @@ -7,7 +7,6 @@ tail = [test_bug451678.js] [test_bug596580.js] [test_bug604362.js] -[test_bug608142.js] [test_bug641378.js] [test_bug677864.js] [test_bug711404.js]