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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html

Issue 2677453005: Convert WaveShaper tests to testharness (Closed)
Patch Set: Address review comments 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
Index: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html
index b023d1fc4e17d8737711eb47806526cb631a6b26..e34a33c4d905b5804b711b6d1e5b6e5ccbf18207 100644
--- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html
+++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html
@@ -2,21 +2,16 @@
<html>
<head>
-<script src="../../resources/js-test.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
<script src="../resources/audit-util.js"></script>
-<script src="../resources/audio-testing.js"></script>
+<script src="../resources/audit.js"></script>
<script type="text/javascript" src="../resources/mix-testing.js"></script>
<script type="text/javascript" src="../resources/waveshaper-testing.js"></script>
</head>
<body>
-
-<div id="description"></div>
-<div id="console"></div>
-
<script>
-description("Tests 2x WaveShaperNode oversampling.");
-
var testParams = {
"sampleRate": 44100,
"oversample": "2x",
@@ -24,7 +19,8 @@ var testParams = {
// Should generate harmonics at 9000, 18000, 27000, 36000
// The last two should be filtered out with the 2x oversampling.
"fundamentalFrequency": 9000,
- "acceptableAliasingThresholdDecibels": -75.3
+ "acceptableAliasingThresholdDecibels": -75.3,
+ description: "2x WaveShaperNode oversampling"
};
runWaveShaperOversamplingTest(testParams);

Powered by Google App Engine
This is Rietveld 408576698