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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/audiocontext-close-basic.html

Issue 2581463002: Refactor WebAudio test directory (Closed)
Patch Set: Use correct path for wav result files Created 4 years 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/audiocontext-close-basic.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/audiocontext-close-basic.html b/third_party/WebKit/LayoutTests/webaudio/audiocontext-close-basic.html
deleted file mode 100644
index bbb47ae33955718a87ca842c4db8d19a230991e8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/webaudio/audiocontext-close-basic.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!doctype html>
-<html>
- <head>
- <title>Test AudioContext.close() closes many contexts</title>
- <script src="../resources/js-test.js"></script>
- <script src="resources/compatibility.js"></script>
- <script src="resources/audit-util.js"></script>
- <script src="resources/audio-testing.js"></script>
- </head>
-
- <body>
- <script>
- description("Test that closing a context releases the audio HW context");
-
- var context = null;
-
- // The number of contexts we want to create and close.
- var MAX_ITERATION = 100;
- var counter = 0;
-
- function createContextAndClose() {
- // Bypass the first iteration.
- if (context) {
- if (context.state != "closed") {
- testFailed("Context " + counter + " was closed but state is not closed: " + context.state);
- }
- context = null;
- }
- // Create new context and close.
- context = new AudioContext();
- if (counter++ < MAX_ITERATION) {
- // Recursive promise resolution.
- context.close().then(createContextAndClose, onFailure);
- } else {
- context.close()
- .then(function () {
- testPassed("Successfully created and closed " + MAX_ITERATION + " contexts");
- finishJSTest();
- });
- }
- }
-
- function onFailure(message) {
- testFailed("Context " + counter + " failed to close");
- finishJSTest();
- }
-
- // Initiate iteration.
- function runTest() {
- window.jsTestIsAsync = true;
- createContextAndClose();
- }
-
- runTest();
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698