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

Unified Diff: Source/modules/vibration/testing/InternalsVibration.cpp

Issue 40443002: Add Vibration API layout tests that inspect internal state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Address review comments. Created 7 years, 2 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
Index: Source/modules/vibration/testing/InternalsVibration.cpp
diff --git a/Source/modules/vibration/testing/InternalsVibration.cpp b/Source/modules/vibration/testing/InternalsVibration.cpp
index 09792a0fb24c0e5198de516f121e27b3776d1477..a22bb0117b29d31b7e92e679e2b6209a6bd107fe 100644
--- a/Source/modules/vibration/testing/InternalsVibration.cpp
+++ b/Source/modules/vibration/testing/InternalsVibration.cpp
@@ -43,4 +43,10 @@ bool InternalsVibration::isVibrating(Internals* internals, Document* document)
return NavigatorVibration::from(document->page())->isVibrating();
}
+Vector<unsigned> InternalsVibration::pendingVibrationPattern(Internals* internals, Document* document)
+{
+ ASSERT(internals && document && document->page());
+ return NavigatorVibration::from(document->page())->pattern();
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/vibration/testing/InternalsVibration.h ('k') | Source/modules/vibration/testing/InternalsVibration.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698