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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audioworklet/audioworklet-testing.js

Issue 2895963003: Apply layout-test-tidy to LayoutTests/webaudio (Closed)
Patch Set: 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
1 /** 1 /**
2 * Check if |window.internals| and |window.internals.runtimeFlags.AudioWorklet| 2 * Check if |window.internals| and |window.internals.runtimeFlags.AudioWorklet|
3 * are available. 3 * are available.
4 * 4 *
5 * The content_shell driven by run-webkit-tests.py is supposed to enable all the 5 * The content_shell driven by run-webkit-tests.py is supposed to enable all the
6 * experimental web platform features. The flags are exposed via 6 * experimental web platform features. The flags are exposed via
7 * |internals.runtimeFlag|. 7 * |internals.runtimeFlag|.
8 * 8 *
9 * See: https://www.chromium.org/blink/runtime-enabled-features 9 * See: https://www.chromium.org/blink/runtime-enabled-features
10 * 10 *
11 * @return {Boolean} 11 * @return {Boolean}
12 */ 12 */
13 function isAudioWorkletEnabled() { 13 function isAudioWorkletEnabled() {
14 return { 14 return {
15 onContentShell: Boolean(window.internals) && 15 onContentShell: Boolean(window.internals) &&
16 Boolean(window.internals.runtimeFlags.audioWorkletEnabled), 16 Boolean(window.internals.runtimeFlags.audioWorkletEnabled),
17 onBrowser: Boolean(window.Worklet) && Boolean(window.audioWorklet) 17 onBrowser: Boolean(window.Worklet) && Boolean(window.audioWorklet)
18 }; 18 };
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698