| Index: LayoutTests/fast/dom/htmlcollection-selectedOptions-namedItem-crash.html
|
| diff --git a/LayoutTests/fast/dom/htmlcollection-selectedOptions-namedItem-crash.html b/LayoutTests/fast/dom/htmlcollection-selectedOptions-namedItem-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c8ffd36e9f343c7d1fdf43dafddbfa3644797acf
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/htmlcollection-selectedOptions-namedItem-crash.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/js-test.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +description("Makes sure HTMLCollection.namedItem() does not crash for collection of selected options.");
|
| +debug("This test passes if it does not crash.");
|
| +
|
| +var select = document.createElement("select");
|
| +var options = select.selectedOptions;
|
| +select.length = 10;
|
| +shouldBeNull('options.namedItem("test")');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|