Quelle test_gen_static_components.py
Sprache: Python
# 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/.
import os import sys import unittest
import mozunit
sys.path.append(os.path.join(os.path.dirname(__file__), "..")) import gen_static_components from gen_static_components import BackgroundTasksSelector
class TestGenStaticComponents(unittest.TestCase): def test_string(self): # A string: we default to NO_TASKS.
clas = { "cid": "{a8566880-0bc7-4822-adb9-748c9af5cce7}", "contract_ids": ["@mozilla.org/dummy-class;1"], "esModule": "resource:///modules/DummyClass.sys.mjs", "js_name": "dummyClass", "constructor": "DummyClassImpl", "categories": { "dummy1": ["m-dummy1", "m-dummy2"],
}, "protocol_config": { "scheme": "dummy", "flags": [],
},
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.