示例#1
0
 def test_atk(self):
     ns = get_namespace("Atk", "1.0")
     ns.types
     docs = ns.docs
     versions = get_versions(docs)
     self.assertTrue("ATK-0.7" not in versions)
     self.assertTrue("0.7" in versions)
     self.assertTrue("2.16" in versions)
示例#2
0
 def test_atk(self):
     ns = get_namespace("Atk", "1.0")
     ns.types
     docs = ns.docs
     versions = get_versions(docs)
     self.assertTrue("ATK-0.7" not in versions)
     self.assertTrue("0.7" in versions)
     self.assertTrue("2.16" in versions)
示例#3
0
    def test_gdk(self):
        ns = get_namespace("Gdk", "3.0")
        types = ns.types
        docs = ns.docs
        versions = get_versions(docs)
        self.assertTrue("2.0" in versions)
        self.assertTrue("3.0" in versions)

        self.assertEqual(types["GdkModifierType"], ["Gdk.ModifierType"])
        self.assertEqual(
            ns.instance_params["Gdk.Window.begin_paint_region"], "window")
示例#4
0
    def test_gdk(self):
        ns = get_namespace("Gdk", "3.0")
        types = ns.types
        docs = ns.docs
        versions = get_versions(docs)
        self.assertTrue("2.0" in versions)
        self.assertTrue("3.0" in versions)

        self.assertEqual(types["GdkModifierType"], ["Gdk.ModifierType"])
        self.assertEqual(
            ns.instance_params["Gdk.Window.begin_paint_region"], "window")