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

Unified Diff: extensions/test/data/api_test/audio/volume_change/background.js

Issue 2635983006: Final cleanup pass over audio device API (Closed)
Patch Set: . Created 3 years, 10 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 | « extensions/test/data/api_test/audio/test.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/test/data/api_test/audio/volume_change/background.js
diff --git a/extensions/test/data/api_test/audio/volume_change/background.js b/extensions/test/data/api_test/audio/volume_change/background.js
index 7c6a845c9192bf1ff248562b22f7139f3ce264f6..1e54042fd7a380d498b1ba992d8fa303a414a1b6 100644
--- a/extensions/test/data/api_test/audio/volume_change/background.js
+++ b/extensions/test/data/api_test/audio/volume_change/background.js
@@ -4,9 +4,9 @@
chrome.test.runTests([
function waitForLevelChangedEventTests() {
- chrome.test.listenOnce(chrome.audio.OnLevelChanged, function (id, level) {
- chrome.test.assertEq('30001', id);
- chrome.test.assertEq(60, level);
+ chrome.test.listenOnce(chrome.audio.onLevelChanged, function (evt) {
+ chrome.test.assertEq('30001', evt.deviceId);
+ chrome.test.assertEq(60, evt.level);
});
}
]);
« no previous file with comments | « extensions/test/data/api_test/audio/test.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698