当前位置: 首页>>代码示例>>Python>>正文


Python ManifestItem.__init__方法代码示例

本文整理汇总了Python中wptmanifest.backends.conditional.ManifestItem.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ManifestItem.__init__方法的具体用法?Python ManifestItem.__init__怎么用?Python ManifestItem.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在wptmanifest.backends.conditional.ManifestItem的用法示例。


在下文中一共展示了ManifestItem.__init__方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from wptmanifest.backends.conditional import ManifestItem [as 别名]
# 或者: from wptmanifest.backends.conditional.ManifestItem import __init__ [as 别名]
    def __init__(self, node, test_path=None, url_base=None, property_order=None,
                 boolean_properties=None):
        """Object representing all the tests in a particular manifest

        :param node: AST Node associated with this object. If this is None,
                     a new AST is created to associate with this manifest.
        :param test_path: Path of the test file associated with this manifest.
        :param url_base: Base url for serving the tests in this manifest.
        :param property_order: List of properties to use in expectation metadata
                               from most to least significant.
        :param boolean_properties: Set of properties in property_order that should
                                   be treated as boolean.
        """
        if node is None:
            node = DataNode(None)
        ManifestItem.__init__(self, node)
        self.child_map = {}
        self.test_path = test_path
        self.url_base = url_base
        assert self.url_base is not None
        self.modified = False
        self.boolean_properties = boolean_properties
        self.property_order = property_order
        self.update_properties = {
            "lsan": LsanUpdate(self),
            "leak-object": LeakObjectUpdate(self),
            "leak-threshold": LeakThresholdUpdate(self),
        }
开发者ID:alvestrand,项目名称:web-platform-tests,代码行数:30,代码来源:manifestupdate.py

示例2: __init__

# 需要导入模块: from wptmanifest.backends.conditional import ManifestItem [as 别名]
# 或者: from wptmanifest.backends.conditional.ManifestItem import __init__ [as 别名]
    def __init__(self, node):
        """Node in a tree structure representing the paths
        that should be included or excluded from the test run.

        :param node: AST Node corresponding to this Node.
        """
        ManifestItem.__init__(self, node)
        self.child_map = {}
开发者ID:Andrel322,项目名称:gecko-dev,代码行数:10,代码来源:manifestinclude.py

示例3: __init__

# 需要导入模块: from wptmanifest.backends.conditional import ManifestItem [as 别名]
# 或者: from wptmanifest.backends.conditional.ManifestItem import __init__ [as 别名]
    def __init__(self, node):
        """Tree node associated with a particular test in a manifest

        :param node: AST node associated with the test"""

        ManifestItem.__init__(self, node)
        self.updated_expected = []
        self.new_expected = []
        self.subtests = {}
        self.default_status = None
        self._from_file = True
开发者ID:AlanWasTaken,项目名称:servo,代码行数:13,代码来源:manifestupdate.py

示例4: __init__

# 需要导入模块: from wptmanifest.backends.conditional import ManifestItem [as 别名]
# 或者: from wptmanifest.backends.conditional.ManifestItem import __init__ [as 别名]
    def __init__(self, node):
        """Tree node associated with a particular test in a manifest

        :param node: AST node associated with the test"""

        ManifestItem.__init__(self, node)
        self.subtests = {}
        self._from_file = True
        self.update_properties = {
            "expected": ExpectedUpdate(self),
            "max-asserts": MaxAssertsUpdate(self),
            "min-asserts": MinAssertsUpdate(self)
        }
开发者ID:birtles,项目名称:web-platform-tests,代码行数:15,代码来源:manifestupdate.py

示例5: __init__

# 需要导入模块: from wptmanifest.backends.conditional import ManifestItem [as 别名]
# 或者: from wptmanifest.backends.conditional.ManifestItem import __init__ [as 别名]
    def __init__(self, node, test_path=None):
        """Object representing all the tests in a particular manifest

        :param node: AST Node associated with this object. If this is None,
                     a new AST is created to associate with this manifest.
        :param test_path: Path of the test file associated with this manifest.
        """
        if node is None:
            node = DataNode(None)
        ManifestItem.__init__(self, node)
        self.child_map = {}
        self.test_path = test_path
        self.modified = False
开发者ID:Andrel322,项目名称:gecko-dev,代码行数:15,代码来源:manifestupdate.py


注:本文中的wptmanifest.backends.conditional.ManifestItem.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。