Update object -> prototype GC edge names in findReferences tests. Bug 685372, r=jorendorff.
authorJim Blandy <jimb@mozilla.com>
Thu, 08 Sep 2011 16:19:13 -0500
changeset 76841 70dc8862965e946d621306e195f958bd30d37585
parent 76840 a739df5e7bc0b74880944fab3e2202fa11bce435
child 76842 c1afecb67d8f2c8678fbf99ea176488ccc69f3c9
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersjorendorff
bugs685372
milestone9.0a1
Update object -> prototype GC edge names in findReferences tests. Bug 685372, r=jorendorff.
js/src/tests/js1_8_5/extensions/findReferences-01.js
js/src/tests/js1_8_5/extensions/findReferences-02.js
--- a/js/src/tests/js1_8_5/extensions/findReferences-01.js
+++ b/js/src/tests/js1_8_5/extensions/findReferences-01.js
@@ -5,17 +5,17 @@
 if (typeof findReferences == "function") {
     function C() {}
     var o = new C;
     o.x = {};               // via ordinary property
     o[42] = {};             // via numeric property
     o.myself = o;           // self-references should be reported
     o.alsoMyself = o;       // multiple self-references should all be reported
 
-    assertEq(referencesVia(o, 'type_proto', C.prototype), true);
+    assertEq(referencesVia(o, 'type; type_proto', C.prototype), true);
     assertEq(referencesVia(o, 'parent', this), true);
     assertEq(referencesVia(o, 'x', o.x), true);
     assertEq(referencesVia(o, '42', o[42]), true);
     assertEq(referencesVia(o, 'myself', o), true);
     assertEq(referencesVia(o, 'alsoMyself', o), true);
 
     function g() { return 42; }
     function s(v) { }
--- a/js/src/tests/js1_8_5/extensions/findReferences-02.js
+++ b/js/src/tests/js1_8_5/extensions/findReferences-02.js
@@ -15,14 +15,14 @@ if (typeof findReferences == "function")
     function returnHeavy(y) { eval(''); return function heavy() { return y; }; }
     assertEq(referencesVia(returnHeavy(o), 'parent; y', o), true);
     assertEq(referencesVia(returnHeavy(o), 'parent; parent', this), true);
 
     function returnBlock(z) { eval(''); let(w = z) { return function block() { return w; }; }; }
     assertEq(referencesVia(returnBlock(o), 'parent; w', o), true);
 
     function returnWithObj(v) { with(v) return function withObj() { return u; }; }
-    assertEq(referencesVia(returnWithObj(o), 'parent; type_proto', o), true);
+    assertEq(referencesVia(returnWithObj(o), 'parent; type; type_proto', o), true);
 
     reportCompare(true, true);
 } else {
     reportCompare(true, true, "test skipped: findReferences is not a function");
 }