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> |