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

Unified Diff: LayoutTests/media/audio-delete-while-slider-thumb-clicked.html

Issue 211403003: Add a missing null check in SliderThumbElement::stopDragging() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/audio-delete-while-slider-thumb-clicked.html
diff --git a/LayoutTests/media/audio-delete-while-slider-thumb-clicked.html b/LayoutTests/media/audio-delete-while-slider-thumb-clicked.html
index 052dadf5fb3193809f73e0e96ab667f229e23143..322075fc4d413ae0205be3b694b98d6ef73625d5 100644
--- a/LayoutTests/media/audio-delete-while-slider-thumb-clicked.html
+++ b/LayoutTests/media/audio-delete-while-slider-thumb-clicked.html
@@ -15,9 +15,21 @@
var console = document.getElementById('console');
console.innerHTML = console.innerHTML + msg + "<br>";
}
-
+
+ function forceGC()
+ {
+ if (window.GCController)
+ return GCController.collect();
+
+ // Force garbage collection
+ for (var ndx = 0; ndx < 99000; ndx++)
+ var str = new String("1234");
+ }
+
function buttonClick()
{
+ forceGC();
+
if (document.getElementById('audio'))
log("<br>FAIL: audio element not deleted!!");
@@ -31,7 +43,7 @@
testRunner.notifyDone();
}
-
+
function deleteAudio()
{
var audio = document.getElementById('audio');
@@ -43,7 +55,7 @@
setTimeout(buttonClick, 10);
}
-
+
function drag()
{
if (!window.testRunner)
« no previous file with comments | « no previous file | Source/core/html/shadow/SliderThumbElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698