[EFL][WK1] Gardening AC testcases in efl-wk1
[WebKit-https.git] / LayoutTests / gamepad / gamepad-out-of-range-crasher.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../fast/js/resources/js-test-pre.js"></script>
4 <script>
5     if (window.gamepadController)
6     {
7         // check some out of range values.
8         for (var i = -100; i < 100; ++i)
9         {
10             gamepadController.connect(i);
11             gamepadController.setId(i, "name");
12             for (var j = -100; i < 100; ++i)
13             {
14                 gamepadController.setButtonCount(i, j);
15                 gamepadController.setAxisCount(i, j);
16                 gamepadController.setButtonData(i, j, 0.0);
17                 gamepadController.setAxisData(i, j, 0.0);
18             }
19             gamepadController.disconnect(i);
20         }
21     }
22     else
23     {
24         console.log("FAIL: no gamepadController available.")
25     }
26 </script>
27 <script src="../fast/js/resources/js-test-post.js"></script>
28 <p>Range checks; just shouldn't crash.</p>
29 </body>