aboutsummaryrefslogtreecommitdiffstats
path: root/third_party/WebIDL/tests/test_undefined.py
diff options
context:
space:
mode:
authorNgo Iok Ui (Wu Yu Wei) <yuweiwu@pm.me>2024-06-15 13:22:42 +0900
committerGitHub <noreply@github.com>2024-06-15 04:22:42 +0000
commit8eed3b442b214f678b80dbcc7dca07eeaa1e26ff (patch)
treef8a232e86616e8e5fd234e7bbb32bed4ff7077f2 /third_party/WebIDL/tests/test_undefined.py
parent19067366df28c9131dcbc436bc96a27e64e0a194 (diff)
downloadservo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.tar.gz
servo-8eed3b442b214f678b80dbcc7dca07eeaa1e26ff.zip
Update WebIDL.py (#32495)
* Update WebIDL.py * Update WebIDL.py * Add builtin-array.patch * Fix CodegenRust.py and Configuration.py * Fix missing downcasts * mach fmt * Update check and comment to explain why we need this check * Update Global of DissimilarOriginWindow.webidl
Diffstat (limited to 'third_party/WebIDL/tests/test_undefined.py')
-rw-r--r--third_party/WebIDL/tests/test_undefined.py48
1 files changed, 24 insertions, 24 deletions
diff --git a/third_party/WebIDL/tests/test_undefined.py b/third_party/WebIDL/tests/test_undefined.py
index 4731ee1bcd7..34d1ac824ec 100644
--- a/third_party/WebIDL/tests/test_undefined.py
+++ b/third_party/WebIDL/tests/test_undefined.py
@@ -11,8 +11,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(threw, "undefined must not be used as the type of a dictionary member")
@@ -28,8 +28,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -49,8 +49,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -70,8 +70,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -91,8 +91,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -112,8 +112,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -133,8 +133,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -152,8 +152,8 @@ def WebIDLTest(parser, harness):
callback Callback = undefined (undefined foo);
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -173,8 +173,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -195,8 +195,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -216,8 +216,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(
@@ -236,8 +236,8 @@ def WebIDLTest(parser, harness):
};
"""
)
- results = parser.finish()
- except:
+ parser.finish()
+ except WebIDL.WebIDLError:
threw = True
harness.ok(