Explorar el Código

fixes InterpreterTest >> testGlobalVar

Nicolas Petton hace 10 años
padre
commit
147352b384
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 2 2
      js/Compiler-Tests.deploy.js
  2. 3 3
      js/Compiler-Tests.js
  3. 1 1
      st/Compiler-Tests.st

+ 2 - 2
js/Compiler-Tests.deploy.js

@@ -614,9 +614,9 @@ selector: "testGlobalVar",
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-self._assert_equals_(self._interpret_("foo ^ window document title"),_st(_st(window)._document())._title());
+self._assert_equals_(self._interpret_("foo ^ console"),console);
 return self}, function($ctx1) {$ctx1.fill(self,"testGlobalVar",{},smalltalk.InterpreterTest)})},
-messageSends: ["assert:equals:", "interpret:", "title", "document"]}),
+messageSends: ["assert:equals:", "interpret:"]}),
 smalltalk.InterpreterTest);
 
 smalltalk.addMethod(

+ 3 - 3
js/Compiler-Tests.js

@@ -815,11 +815,11 @@ category: 'tests',
 fn: function (){
 var self=this;
 return smalltalk.withContext(function($ctx1) { 
-self._assert_equals_(self._interpret_("foo ^ window document title"),_st(_st(window)._document())._title());
+self._assert_equals_(self._interpret_("foo ^ console"),console);
 return self}, function($ctx1) {$ctx1.fill(self,"testGlobalVar",{},smalltalk.InterpreterTest)})},
 args: [],
-source: "testGlobalVar\x0a\x09self assert: (self interpret: 'foo ^ window document title') equals: window document title",
-messageSends: ["assert:equals:", "interpret:", "title", "document"],
+source: "testGlobalVar\x0a\x09self assert: (self interpret: 'foo ^ console') equals: console",
+messageSends: ["assert:equals:", "interpret:"],
 referencedClasses: []
 }),
 smalltalk.InterpreterTest);

+ 1 - 1
st/Compiler-Tests.st

@@ -355,7 +355,7 @@ testDynamicDictionary
 !
 
 testGlobalVar
-	self assert: (self interpret: 'foo ^ window document title') equals: window document title
+	self assert: (self interpret: 'foo ^ console') equals: console
 !
 
 testInlinedJSStatement