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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html b/third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html
index 4de2ad85bde7b366ec9d3f1def9c4e8d6cb7ec82..c0a4f796da79bf65fbea4c369a2349c32e38b2d0 100644
--- a/third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html
+++ b/third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioDestination/mediastreamaudiodestinationnode.html
@@ -1,59 +1,58 @@
<!DOCTYPE html>
-
<html>
-<head>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script src="../resources/audit-util.js"></script>
-<script src="../resources/audit.js"></script>
-</head>
-
-<body>
-<script>
-let audit = Audit.createTaskRunner();
-
-audit.define(
- {
- label: 'test',
- description: 'Basic tests for MediaStreamAudioDestinationNode API'
- },
- (task, should) => {
- let context = new AudioContext();
-
- let mediaStreamDestination = context.createMediaStreamDestination();
-
- // MediaStreamAudioDestinationNode should inherit AudioNode.
- should(
- mediaStreamDestination instanceof AudioNode,
- 'mediaStreamDestination instance')
- .beTrue();
-
- // Check the channel count boundary of 8.
- should(
- () => mediaStreamDestination.channelCount = 9,
- 'Setting the channel count beyond 8')
- .throw('NotSupportedError');
-
- // Check number of inputs and outputs.
- should(
- mediaStreamDestination.numberOfInputs,
- 'mediaStreamDestination.numberOfInputs')
- .beEqualTo(1);
-
- // We should have no outputs, but since we're implemented using
- // AudioBasicInspectorNode, we have one.
- should(mediaStreamDestination.numberOfOutputs,
- 'Number of outputs')
- .beEqualTo(1);
-
- // FIXME: add a test where we create a PeerConnection and call
- // addStream(mediaStreamDestination.stream).
-
- task.done();
- });
-
-audit.run();
-</script>
-
-</body>
+ <head>
+ <title>
+ mediastreamaudiodestinationnode.html
+ </title>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <script src="../resources/audit-util.js"></script>
+ <script src="../resources/audit.js"></script>
+ </head>
+ <body>
+ <script id="layout-test-code">
+ let audit = Audit.createTaskRunner();
+
+ audit.define(
+ {
+ label: 'test',
+ description: 'Basic tests for MediaStreamAudioDestinationNode API'
+ },
+ (task, should) => {
+ let context = new AudioContext();
+
+ let mediaStreamDestination = context.createMediaStreamDestination();
+
+ // MediaStreamAudioDestinationNode should inherit AudioNode.
+ should(
+ mediaStreamDestination instanceof AudioNode,
+ 'mediaStreamDestination instance')
+ .beTrue();
+
+ // Check the channel count boundary of 8.
+ should(
+ () => mediaStreamDestination.channelCount = 9,
+ 'Setting the channel count beyond 8')
+ .throw('NotSupportedError');
+
+ // Check number of inputs and outputs.
+ should(
+ mediaStreamDestination.numberOfInputs,
+ 'mediaStreamDestination.numberOfInputs')
+ .beEqualTo(1);
+
+ // We should have no outputs, but since we're implemented using
+ // AudioBasicInspectorNode, we have one.
+ should(mediaStreamDestination.numberOfOutputs, 'Number of outputs')
+ .beEqualTo(1);
+
+ // FIXME: add a test where we create a PeerConnection and call
+ // addStream(mediaStreamDestination.stream).
+
+ task.done();
+ });
+
+ audit.run();
+ </script>
+ </body>
</html>

Powered by Google App Engine
This is Rietveld 408576698