From 5c5c8573f9792dd14ba3caee4e5b3694ca6848ca Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Tue, 14 Aug 2001 22:24:12 +0000 Subject: [PATCH] Removed extraneous code from the testcase. git-svn-id: svn://10.0.0.236/trunk@101043 18797224-902f-48f8-a5cc-f745e15eee43 --- .../js2/tests/js/js2_0/Class/class-006-n.js | 50 ++----------------- 1 file changed, 4 insertions(+), 46 deletions(-) diff --git a/mozilla/js2/tests/js/js2_0/Class/class-006-n.js b/mozilla/js2/tests/js/js2_0/Class/class-006-n.js index c80dd010c88..9b3bc4763b9 100644 --- a/mozilla/js2/tests/js/js2_0/Class/class-006-n.js +++ b/mozilla/js2/tests/js/js2_0/Class/class-006-n.js @@ -20,8 +20,9 @@ * Date: 2001-06-25 * * SUMMARY: Negative test: a class method may not change the value of this. +* In this test, we don't even instantiate the class... */ -//------------------------------------------------------------------------------------------------- +//----------------------------------------------------------------------------- var bug = '(none)'; var summary = 'Negative test: a class method may not change the value of this'; var self = this; // capture a reference to the global object @@ -35,56 +36,13 @@ class A } } -class AA extends A -{ - var m1:Function = changeThis; - - function m2() - { - return typeof changeThis; - } - - function m3() - { - return typeof m1; - } -} -var objA = new A; -var objAA = new AA; - - -status = inSection(1); -actual = typeof objAA.m1; -expect = TYPE_FUNCTION; -addThis(); - -status = inSection(2); -actual = objAA.m2(); -expect = TYPE_FUNCTION; -addThis(); - -status = inSection(3); -actual = objAA.m3(); -expect = TYPE_FUNCTION; -addThis(); - - - -//------------------------------------------------------------------------------------------------- +//----------------------------------------------------------------------------- test(); -//------------------------------------------------------------------------------------------------- +//----------------------------------------------------------------------------- -function addThis() -{ - statusitems[UBound] = status; - actualvalues[UBound] = actual; - expectedvalues[UBound] = expect; - UBound++; -} - function test() {