Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
michael@0 | 3 | * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /** |
michael@0 | 6 | * This file runs a stub Bagheera server. |
michael@0 | 7 | * |
michael@0 | 8 | * It is meant to be executed with an xpcshell. |
michael@0 | 9 | * |
michael@0 | 10 | * The Makefile in this directory contains a target to run it: |
michael@0 | 11 | * |
michael@0 | 12 | * $ make bagheera-server |
michael@0 | 13 | */ |
michael@0 | 14 | |
michael@0 | 15 | Cu.import("resource://testing-common/services-common/bagheeraserver.js"); |
michael@0 | 16 | |
michael@0 | 17 | initTestLogging(); |
michael@0 | 18 | |
michael@0 | 19 | let server = new BagheeraServer(); |
michael@0 | 20 | server.allowAllNamespaces = true; |
michael@0 | 21 | server.start(SERVER_PORT); |
michael@0 | 22 | _("Bagheera server started on port " + SERVER_PORT); |
michael@0 | 23 | |
michael@0 | 24 | // Launch the thread manager. |
michael@0 | 25 | _do_main(); |
michael@0 | 26 |