| Index: third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
|
| index 04343cbaf3f4b51633c526a46d5ab176e51b2acd..22e14b6f930df78583df264bdbb21d46c9c1d4c1 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/AudioContext/audiocontext-listener-should-not-crash.html
|
| @@ -1,8 +1,27 @@
|
| -<script src="../../resources/js-test.js"></script>
|
| +<!doctype html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<script src="../resources/audit.js"></script>
|
| +</head>
|
| +<body>
|
| <script>
|
| -var context = new AudioContext();
|
| -context.listener;
|
| -document.addEventListener(0, context);
|
| -testPassed("document.addEventListener should not crash.");
|
| -</script>
|
| +let audit = new Audit.createTaskRunner();
|
| +
|
| +audit.define("test", function (task, should) {
|
| + let context = new AudioContext();
|
| + should(context.listener instanceof AudioListener,
|
| + "context.listener is AudioListener")
|
| + .beTrue();
|
| + should(function () {
|
| + document.addEventListener(0, context);
|
| + }, "document.addEventListener(0, context) should not crash")
|
| + .notThrow();
|
| + task.done();
|
| +});
|
|
|
| +audit.run();
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|