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

Unified Diff: third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html

Issue 2540623002: Fix speech-synthesis-speak-multiple.html flakiness. (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html
diff --git a/third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html b/third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html
index 37cf969690a650505064ff8ba64f044f6aa69827..af43e8a3ae96ecaccbbd38cea41bd1dfb072226f 100644
--- a/third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html
+++ b/third_party/WebKit/LayoutTests/fast/speechsynthesis/speech-synthesis-speak-multiple.html
@@ -21,12 +21,14 @@
// Start a very short speaking job that will finish quickly.
var u = new SpeechSynthesisUtterance(" ");
u.onstart = function(event) {
- shouldBeTrue("event.elapsedTime > 0");
+ shouldBeTrue("event.elapsedTime >= 0");
+ shouldBeTrue("event.elapsedTime < 1000");
shouldBeTrue("speechSynthesis.speaking");
};
u.onend = function(event) {
shouldBeGreaterThanOrEqual("count", "i");
shouldBeTrue("event.elapsedTime > 0");
+ shouldBeTrue("event.elapsedTime < 10000");
shouldBeTrue("speechSynthesis.speaking");
if (++i == count) {
speechSynthesis.cancel();

Powered by Google App Engine
This is Rietveld 408576698