| 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 22e14b6f930df78583df264bdbb21d46c9c1d4c1..a065fc2e4163cbd356b28abcd51b730dc458ffe6 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,27 +1,30 @@
|
| -<!doctype html>
|
| +<!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>
|
| -let audit = new Audit.createTaskRunner();
|
| + <head>
|
| + <title>
|
| + audiocontext-listener-should-not-crash.html
|
| + </title>
|
| + <script src="../../resources/testharness.js"></script>
|
| + <script src="../../resources/testharnessreport.js"></script>
|
| + <script src="../resources/audit.js"></script>
|
| + </head>
|
| + <body>
|
| + <script id="layout-test-code">
|
| + 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.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>
|
| + audit.run();
|
| + </script>
|
| + </body>
|
| </html>
|
|
|