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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-clear-internal-state.html

Issue 2727663003: Move task.describe to audit.define arg (Closed)
Patch Set: Fix up expected results Created 3 years, 9 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/DynamicsCompressor/dynamicscompressor-clear-internal-state.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-clear-internal-state.html b/third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-clear-internal-state.html
index 65fc81ea0ca7b2ef9ae7e847416c97e6e54c9f48..c9207cf8b9f8788a9ca982e13ba8c988a616bff5 100644
--- a/third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-clear-internal-state.html
+++ b/third_party/WebKit/LayoutTests/webaudio/DynamicsCompressor/dynamicscompressor-clear-internal-state.html
@@ -19,35 +19,37 @@
let sampleRate = 44100;
let testDurationSamples = 44100;
- audit.define("test", function (task, should) {
- task.describe(
- "Validate Reduction Value of DynamicsCompressor after Disabling"
- );
- // Create the offline context for the test.
- context = new OfflineAudioContext(1, testDurationSamples, sampleRate);
-
- // Create the constant sample buffer of 0.5 sec.
- buffer = createConstantBuffer(context, testDurationSamples / 2, 1);
-
- // Create compressor and use default parameters for the compression.
- compressor = context.createDynamicsCompressor();
-
- // Create the source and connect it to the destination
- source = context.createBufferSource();
- source.buffer = buffer;
- source.connect(compressor);
- compressor.connect(context.destination);
- source.start(0.0);
-
- // Render it!
- context.startRendering()
- .then(() => {
- // Check that the reduction value is 0.0.
- should(compressor.reduction, "compressor.reduction")
- .beEqualTo(0);
- task.done();
+ audit.define(
+ {
+ label: 'test',
+ description:
+ 'Validate Reduction Value of DynamicsCompressor after Disabling'
+ },
+ function(task, should) {
+ // Create the offline context for the test.
+ context =
+ new OfflineAudioContext(1, testDurationSamples, sampleRate);
+
+ // Create the constant sample buffer of 0.5 sec.
+ buffer = createConstantBuffer(context, testDurationSamples / 2, 1);
+
+ // Create compressor and use default parameters for the compression.
+ compressor = context.createDynamicsCompressor();
+
+ // Create the source and connect it to the destination
+ source = context.createBufferSource();
+ source.buffer = buffer;
+ source.connect(compressor);
+ compressor.connect(context.destination);
+ source.start(0.0);
+
+ // Render it!
+ context.startRendering().then(() => {
+ // Check that the reduction value is 0.0.
+ should(compressor.reduction, 'compressor.reduction').beEqualTo(0);
+ task.done();
});
- });
+ });
audit.run();
</script>

Powered by Google App Engine
This is Rietveld 408576698