Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: LayoutTests/vibration/vibration-patterns.html

Issue 48903019: Delete js-test-post.js. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/vibration/vibration-exceptions.html ('k') | LayoutTests/webaudio/audiobuffer.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../fast/js/resources/js-test-pre.js"></script> 3 <script src="../fast/js/resources/js-test-pre.js"></script>
4 <script src="vibration-utils.js"></script> 4 <script src="vibration-utils.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Tests for how patterns are handled in the Vibration API.'); 8 description('Tests for how patterns are handled in the Vibration API.');
9 9
10 // A trailing pause is discarded from a pattern i.e. patterns of even 10 // A trailing pause is discarded from a pattern i.e. patterns of even
11 // non-zero length are truncated by 1. 11 // non-zero length are truncated by 1.
12 shouldBeTrue("navigator.vibrate(newPattern(1, 4))"); 12 shouldBeTrue("navigator.vibrate(newPattern(1, 4))");
13 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 3))"); 13 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 3))");
14 shouldBeTrue("internals.isVibrating(document)"); 14 shouldBeTrue("internals.isVibrating(document)");
15 stopVibration(); 15 stopVibration();
16 16
17 // Maximum pattern length. 17 // Maximum pattern length.
18 shouldBeTrue("navigator.vibrate(newPattern(1, 99))"); 18 shouldBeTrue("navigator.vibrate(newPattern(1, 99))");
19 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 99))"); 19 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 99))");
20 shouldBeTrue("internals.isVibrating(document)"); 20 shouldBeTrue("internals.isVibrating(document)");
21 stopVibration(); 21 stopVibration();
22 22
23 // The pattern is longer than supported. It is truncated and execution proceeds. 23 // The pattern is longer than supported. It is truncated and execution proceeds.
24 shouldBeTrue("navigator.vibrate(newPattern(1, 200))"); 24 shouldBeTrue("navigator.vibrate(newPattern(1, 200))");
25 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 99))"); 25 shouldBeTrue("areArraysEqual(internals.pendingVibrationPattern(document), newPat tern(1, 99))");
26 shouldBeTrue("internals.isVibrating(document)"); 26 shouldBeTrue("internals.isVibrating(document)");
27 stopVibration(); 27 stopVibration();
28 28
29 </script> 29 </script>
30 <script src="../fast/js/resources/js-test-post.js"></script>
31 </body> 30 </body>
32 </html> 31 </html>
OLDNEW
« no previous file with comments | « LayoutTests/vibration/vibration-exceptions.html ('k') | LayoutTests/webaudio/audiobuffer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698