| Index: third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html
|
| diff --git a/third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html b/third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html
|
| index d00cdde00e60684df0a5ec68b44a79caa86091ba..3074e4948b287ba54f591d648acf37c4c0529554 100644
|
| --- a/third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html
|
| +++ b/third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html
|
| @@ -1,10 +1,26 @@
|
| <body>
|
| -<script src="../resources/js-test.js">
|
| +<script src="../resources/testharness.js"></script>
|
| +<script src="../resources/testharnessreport.js"></script>
|
| +<script src="resources/audit.js"></script>
|
| <script>
|
| -description("This test passes if it doesn't crash.");
|
| -var ac = new AudioContext();
|
| -var node = ac.createChannelMerger(4);
|
| -node.connect(ac.createMediaStreamDestination(), 0);
|
| -gc();
|
| +let audit = Audit.createTaskRunner();
|
| +
|
| +audit.define(
|
| + {
|
| + label: 'test',
|
| + description:
|
| + 'Test connection from ChannelMerger to MediaStreamAudioDestination'
|
| + },
|
| + (task, should) => {
|
| + let context = new AudioContext();
|
| + let node = context.createChannelMerger(4);
|
| + node.connect(context.createMediaStreamDestination(), 0);
|
| + gc();
|
| + // Test passes if we get here because we didn't crash
|
| + should(true, 'Test survived GC').message('correctly', 'incorrectly');
|
| + task.done();
|
| + });
|
| +
|
| +audit.run();
|
| </script>
|
| </body>
|
|
|