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

Side by Side Diff: chrome/test/data/extensions/api_test/media_perception_private/diagnostics/runtest.js

Issue 2858353002: MediaPerceptionPrivate API impl and testing. (Closed)
Patch Set: Addressing comments on API implementation. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function getDiagnostics() {
6 chrome.mediaPerceptionPrivate.getDiagnostics(
7 chrome.test.callback(diagnosticsCallback));
8 }
9
tbarzic 2017/05/09 01:28:36 I'd rewrite this as chrome.test.runTests([ func
Luke Sorenson 2017/05/09 21:05:44 Done.
10 function diagnosticsCallback(response) {
11 chrome.test.assertEq(
12 response.perceptionSamples[0].framePerception.frameId, 1);
13 }
14
15 chrome.test.runTests([getDiagnostics]);
16
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698