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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html

Issue 2677723002: Convert Oscillator tests to testharness (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html
index c98186e53380e2174719a301f80410a70e5e4332..852d9987def4983938ad67c0d2afb6f1f982b902 100644
--- a/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html
+++ b/third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic.html
@@ -5,18 +5,14 @@ Create an oscillator of each type and verify that the type is set correctly.
-->
<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>
</head>
<body>
-<div id="description"></div>
-<div id="console"></div>
-
<script>
-description("Basic test of setting Oscillator node types.");
-
var sampleRate = 44100;
var renderLengthSeconds = 0.25;
@@ -24,13 +20,6 @@ var oscTypes = ["sine", "square", "sawtooth", "triangle", "custom"];
function runTest()
{
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.jsTestIsAsync = true;
-
// Create offline audio context.
var context = new OfflineAudioContext(2, sampleRate * renderLengthSeconds, sampleRate);
var osc = context.createOscillator();
@@ -64,13 +53,9 @@ function runTest()
osc.type = 0;
Should("osc.type = 0", osc.type).notBeEqualTo(0);
Should("osc.type", osc.type).beEqualTo(oldType);
-
- finishJSTest();
}
runTest();
-successfullyParsed = true;
-
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/Oscillator/oscillator-basic-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698