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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/select-set-length-with-mutation-remove.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/forms/select-set-length-with-mutation-remove.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/select-set-length-with-mutation-remove.html b/third_party/WebKit/LayoutTests/fast/forms/select-set-length-with-mutation-remove.html
deleted file mode 100644
index 3357ebbaa7a8f89e8ff39f2dd82241e452d84c13..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/forms/select-set-length-with-mutation-remove.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description('Tests that setting .length on an HTMLSelectElement works in the presence of mutation listeners that remove option elements.');
-
-function onRemove(e) {
- if (e.target.nextSibling != null) {
- // remove listener temporarily to avoid lots of nesting
- sel.removeEventListener('DOMNodeRemoved', onRemove, false);
- e.target.nextSibling.parentNode.removeChild(e.target.nextSibling);
- sel.addEventListener('DOMNodeRemoved', onRemove, false);
- }
- GCController.collect(); // Use a single GC here to avoid test TIMEOUTs.
-}
-
-var sel = document.createElement('select');
-document.body.appendChild(sel);
-
-sel.addEventListener('DOMNodeRemoved', onRemove, false);
-sel.addEventListener('DOMNodeInserted', function() {}, false);
-
-sel.length = 200;
-shouldBe('sel.length', '200');
-
-sel.length = 100;
-shouldBe('sel.length', '100');
-
-sel.length = 180;
-shouldBe('sel.length', '180');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698