Update WebIDL

This commit is contained in:
sagudev
2023-02-19 13:36:13 +01:00
parent 6f563830d1
commit 4d393612b4
77 changed files with 9035 additions and 4668 deletions

View File

@@ -1,6 +1,7 @@
# Import the WebIDL module, so we can do isinstance checks and whatnot
import WebIDL
def WebIDLTest(parser, harness):
# Basic functionality
parser.parse(
@@ -9,7 +10,8 @@ def WebIDLTest(parser, harness):
[NewObject] readonly attribute Iface attr;
[NewObject] Iface method();
};
""")
"""
)
results = parser.finish()
harness.ok(results, "Should not have thrown on basic [NewObject] usage")
@@ -21,7 +23,8 @@ def WebIDLTest(parser, harness):
interface Iface {
[Pure, NewObject] readonly attribute Iface attr;
};
""")
"""
)
results = parser.finish()
except:
threw = True
@@ -35,7 +38,8 @@ def WebIDLTest(parser, harness):
interface Iface {
[Pure, NewObject] Iface method();
};
""")
"""
)
results = parser.finish()
except:
threw = True
@@ -49,7 +53,8 @@ def WebIDLTest(parser, harness):
interface Iface {
[Cached, NewObject, Affects=Nothing] readonly attribute Iface attr;
};
""")
"""
)
results = parser.finish()
except:
threw = True
@@ -63,7 +68,8 @@ def WebIDLTest(parser, harness):
interface Iface {
[StoreInSlot, NewObject, Affects=Nothing] readonly attribute Iface attr;
};
""")
"""
)
results = parser.finish()
except:
threw = True