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

Side by Side Diff: LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash.html

Issue 228133002: Fix crash if utterance is garbage-collected before speech ends. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comment Created 6 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body id="body">
7
8 <div id="console"></div>
9
10 <script>
11
12 if (window.internals)
13 window.internals.enableMockSpeechSynthesizer(document);
14
15 description("This tests that there isn't a crash if the utterance object is garbage-collected before speaking finishes.");
16
17 if (window.testRunner)
18 testRunner.waitUntilDone();
19
20 window.jsTestIsAsync = true;
21
22 speechSynthesis.speak(new SpeechSynthesisUtterance(" "));
23 gc();
24
25 window.setInterval(function() {
26 if (!speechSynthesis.speaking)
27 finishJSTest();
28 }, 10);
29
30 </script>
31
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/speechsynthesis/speech-synthesis-gc-utterance-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698