mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Auto merge of #6582 - servo:clamp-enforce-range, r=jdm
Add Clamp and EnforceRange support for webidl arguments. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6582) <!-- Reviewable:end -->
This commit is contained in:
commit
36d732a60a
6 changed files with 177 additions and 53 deletions
|
@ -28859,7 +28859,16 @@
|
|||
},
|
||||
"local_changes": {
|
||||
"deleted": [],
|
||||
"items": {},
|
||||
"items": {
|
||||
"testharness": {
|
||||
"websockets/Close-clamp.htm": [
|
||||
{
|
||||
"path": "websockets/Close-clamp.htm",
|
||||
"url": "/websockets/Close-clamp.htm"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
|
|
14
tests/wpt/web-platform-tests/websockets/Close-clamp.htm
Normal file
14
tests/wpt/web-platform-tests/websockets/Close-clamp.htm
Normal file
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<title>WebSocket#close(2**16+1000)</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="websocket.js?pipe=sub"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var ws = CreateWebSocket(false, false, false);
|
||||
assert_throws("InvalidAccessError", function () {
|
||||
ws.close(0x10000 + 1000);
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue