Add a test for WebIDL-weakmap stuff in addition to XPConnect-weakmap. No bug, no review
authorBoris Zbarsky <bzbarsky@mit.edu>
Thu, 31 Jan 2013 01:04:48 -0500
changeset 120439 3699133bf05c18e998c186552ce7981027f4d441
parent 120438 cd110c95073d4ff378bbd2a112a4e9cdac0d0022
child 120440 59b689e1d999add636bf2bf54b02c36ffbafdc96
push id24251
push userryanvm@gmail.com
push dateThu, 31 Jan 2013 20:56:22 +0000
treeherdermozilla-central@683b08dc1afd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Add a test for WebIDL-weakmap stuff in addition to XPConnect-weakmap. No bug, no review
js/xpconnect/tests/mochitest/Makefile.in
js/xpconnect/tests/mochitest/test_bug655297-1.html
js/xpconnect/tests/mochitest/test_bug655297-2.html
js/xpconnect/tests/mochitest/test_bug655297.html
--- a/js/xpconnect/tests/mochitest/Makefile.in
+++ b/js/xpconnect/tests/mochitest/Makefile.in
@@ -59,17 +59,18 @@ MOCHITEST_FILES =	chrome_wrappers_helper
 		file2_bug629227.html \
 		test_bug629331.html \
 		test1_bug629331.html \
 		test2_bug629331.html \
 		test_bug636097.html \
 		test_bug661980.html \
 		test_bug650273.html \
 		file_bug650273.html \
-		test_bug655297.html \
+		test_bug655297-1.html \
+		test_bug655297-2.html \
 		file_bug658560.html \
 		test_bug691059.html \
 		file_bug706301.html \
 		file_bug720619.html \
 		test_bug720619.html \
 		test_bug731471.html \
 		file_bug738244.html \
 		test_bug745483.html \
rename from js/xpconnect/tests/mochitest/test_bug655297.html
rename to js/xpconnect/tests/mochitest/test_bug655297-1.html
copy from js/xpconnect/tests/mochitest/test_bug655297.html
copy to js/xpconnect/tests/mochitest/test_bug655297-2.html
--- a/js/xpconnect/tests/mochitest/test_bug655297.html
+++ b/js/xpconnect/tests/mochitest/test_bug655297-2.html
@@ -9,31 +9,31 @@ https://bugzilla.mozilla.org/show_bug.cg
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=655297">Mozilla Bug 655297</a>
 <p id="display"></p>
 <div id="content" style="display: none">
   
 </div>
-    <form>0</form> <form>1</form> <form>2</form> <form>3</form> <form>4</form>
-    <form>5</form> <form>6</form> <form>7</form> <form>8</form> <form>9</form>
+    <p>0</p> <p>1</p> <p>2</p> <p>3</p> <p>4</p>
+    <p>5</p> <p>6</p> <p>7</p> <p>8</p> <p>9</p>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 655297 **/
 
 var map = WeakMap();
 function f() {
-    var paras = document.getElementsByTagName("form");
+    var paras = document.getElementsByTagName("p");
     for (var i = 0; i < paras.length; i++)
         map.set(paras[i], "ok");
 }
 function g() {
-    var paras = document.getElementsByTagName("form");
+    var paras = document.getElementsByTagName("p");
     for (var i = 0; i < paras.length; i++) {
         if (map.get(paras[i]) != "ok") {
             return false;
 	}
     }
     return true;
 }