mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Update web-platform-tests to revision cfada7e6cb379699fa94c7ed8fcb97082327e10c
This commit is contained in:
parent
87e7e3d429
commit
06b00da16b
179 changed files with 6103 additions and 1186 deletions
|
@ -75,6 +75,8 @@ let testFunction = function(session, fakeDeviceController, t) {
|
|||
"Expect to get a cached_input_source, iteration: " + inputChangeEvents);
|
||||
assert_not_equals(cached_input_source.gamepad, null,
|
||||
"Expect to have a gamepad, iteration: " + inputChangeEvents);
|
||||
assert_equals(cached_input_source.gamepad.index, -1,
|
||||
"WebXR Gamepad.index must be -1, iteration: " + inputChangeEvents);
|
||||
assert_true(cached_input_source.gamepad.connected,
|
||||
"Expect the gamepad to be connected, iteration: " + inputChangeEvents);
|
||||
}
|
||||
|
@ -84,6 +86,8 @@ let testFunction = function(session, fakeDeviceController, t) {
|
|||
"Expect to have a cached_input_source, iteration: " + inputChangeEvents);
|
||||
assert_not_equals(cached_input_source.gamepad, null,
|
||||
"Expect to have a gamepad on cached_input_source, iteration: " + inputChangeEvents);
|
||||
assert_equals(cached_input_source.gamepad.index, -1,
|
||||
"WebXR Gamepad.index must be -1, iteration: " + inputChangeEvents);
|
||||
assert_false(cached_input_source.gamepad.connected,
|
||||
"Expect cached gamepad to be disconnected, iteration: " + inputChangeEvents);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue