Index: third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html |
diff --git a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html |
index 68a095f4f46cda62bc38f493280709e576085d45..acf6ff929230cc928fe32bd3f87f707a3dbe6219 100644 |
--- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html |
+++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-4x.html |
@@ -1,30 +1,29 @@ |
<!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> |
-<script type="text/javascript" src="../resources/mix-testing.js"></script> |
-<script type="text/javascript" src="../resources/waveshaper-testing.js"></script> |
-</head> |
- |
-<body> |
-<script> |
-var testParams = { |
- "sampleRate": 44100, |
- "oversample": "4x", |
- |
- // Should generate harmonics at 18000, 36000, 54000, 72000 |
- // All except for 18000 should be filtered out with the 4x oversampling. |
- "fundamentalFrequency": 18000, |
- "acceptableAliasingThresholdDecibels": -79.9, |
- description: "4x WaveShaperNode oversampling" |
-}; |
-runWaveShaperOversamplingTest(testParams); |
- |
-</script> |
+ <head> |
+ <title> |
+ waveshaper-oversample-4x.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> |
+ <script src="../resources/mix-testing.js"></script> |
+ <script src="../resources/waveshaper-testing.js"></script> |
+ </head> |
+ <body> |
+ <script id="layout-test-code"> |
+ let testParams = { |
+ 'sampleRate': 44100, |
+ 'oversample': '4x', |
-</body> |
+ // Should generate harmonics at 18000, 36000, 54000, 72000 |
+ // All except for 18000 should be filtered out with the 4x oversampling. |
+ 'fundamentalFrequency': 18000, |
+ 'acceptableAliasingThresholdDecibels': -79.9, |
+ description: '4x WaveShaperNode oversampling' |
+ }; |
+ runWaveShaperOversamplingTest(testParams); |
+ </script> |
+ </body> |
</html> |