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

Unified Diff: LayoutTests/fast/dom/navigator-vibration-expected.txt

Issue 15724023: Vibration API: use runtime flag, change from client to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 7 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/dom/navigator-vibration.html ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/navigator-vibration-expected.txt
diff --git a/LayoutTests/fast/dom/navigator-vibration-expected.txt b/LayoutTests/fast/dom/navigator-vibration-expected.txt
index ee41a35c7b6a98cdbd6f1b3641c75ad637748eb8..6d3a442b5274f162e2c28d53fd4e83c499296286 100644
--- a/LayoutTests/fast/dom/navigator-vibration-expected.txt
+++ b/LayoutTests/fast/dom/navigator-vibration-expected.txt
@@ -3,12 +3,18 @@ Test for the Vibration API.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-FAIL navigator.vibrate(0); should be undefined. Threw exception TypeError: Object #<Navigator> has no method 'vibrate'
-FAIL navigator.vibrate([]); should be undefined. Threw exception TypeError: Object #<Navigator> has no method 'vibrate'
-FAIL navigator.vibrate(1000); should be undefined. Threw exception TypeError: Object #<Navigator> has no method 'vibrate'
-FAIL navigator.vibrate([1000, 300, 500]); should be undefined. Threw exception TypeError: Object #<Navigator> has no method 'vibrate'
-FAIL navigator.vibrate(4294967295); should be undefined. Threw exception TypeError: Object #<Navigator> has no method 'vibrate'
-PASS navigator.vibrate(); threw exception TypeError: Object #<Navigator> has no method 'vibrate'.
+PASS navigator.vibrate(0); is true
+PASS navigator.vibrate([]); is true
+PASS navigator.vibrate(1); is true
+PASS navigator.vibrate([1, 2]); is true
+PASS navigator.vibrate([1, 2, 3]); is true
+PASS navigator.vibrate(10000); is true
+PASS navigator.vibrate(10001); is false
+PASS navigator.vibrate(-1); is false
+PASS var p = []; for (var i = 0; i < 99; i++) p[i] = 1; navigator.vibrate(p); is true
+PASS var p = []; for (var i = 0; i < 100; i++) p[i] = 1; navigator.vibrate(p); is false
+PASS navigator.vibrate(); threw exception TypeError: Not enough arguments.
+PASS navigator.vibrate([1], [2]); threw exception TypeError: Type error.
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/dom/navigator-vibration.html ('k') | Source/core/page/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698