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

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audiosummingjunction-crash.html

Issue 2698843003: Convert more miscellaneous tests to testharness (Closed)
Patch Set: Shorten description Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
1 <body> 1 <body>
2 <script src="../resources/js-test.js"> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="resources/audit.js"></script>
3 <script> 5 <script>
4 description("This test passes if it doesn't crash."); 6 let audit = Audit.createTaskRunner();
5 var ac = new AudioContext(); 7
6 var node = ac.createChannelMerger(4); 8 audit.define(
7 node.connect(ac.createMediaStreamDestination(), 0); 9 {
8 gc(); 10 label: 'test',
11 description:
12 'Test connection from ChannelMerger to MediaStreamAudioDestination'
13 },
14 (task, should) => {
15 let ac = new AudioContext();
hongchan 2017/02/27 18:21:52 ac => audioContext or context
Raymond Toy 2017/02/27 18:51:49 Done.
16 let node = ac.createChannelMerger(4);
17 node.connect(ac.createMediaStreamDestination(), 0);
18 gc();
19 // Test passes if we get here because we didn't crash
20 should(true, 'Test survived GC').message('correctly', 'incorrectly');
21 task.done();
22 });
23
24 audit.run();
9 </script> 25 </script>
10 </body> 26 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698