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 e34a33c4d905b5804b711b6d1e5b6e5ccbf18207..5a47accdb19998fa489a594e2364fc068ae1aa24 100644 |
--- a/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.html |
+++ b/third_party/WebKit/LayoutTests/webaudio/WaveShaper/waveshaper-oversample-2x.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": "2x", |
- |
- // Should generate harmonics at 9000, 18000, 27000, 36000 |
- // The last two should be filtered out with the 2x oversampling. |
- "fundamentalFrequency": 9000, |
- "acceptableAliasingThresholdDecibels": -75.3, |
- description: "2x WaveShaperNode oversampling" |
-}; |
-runWaveShaperOversamplingTest(testParams); |
- |
-</script> |
+ <head> |
+ <title> |
+ waveshaper-oversample-2x.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': '2x', |
-</body> |
+ // Should generate harmonics at 9000, 18000, 27000, 36000 |
+ // The last two should be filtered out with the 2x oversampling. |
+ 'fundamentalFrequency': 9000, |
+ 'acceptableAliasingThresholdDecibels': -75.3, |
+ description: '2x WaveShaperNode oversampling' |
+ }; |
+ runWaveShaperOversamplingTest(testParams); |
+ </script> |
+ </body> |
</html> |