105: patch test-repl-tab-complete.js because console is undefined in nashorn.

Reviewed-by: asquare
This commit is contained in:
Kinsley Wong 2013-12-09 13:53:33 -08:00
parent 4a86831c04
commit 67e7232d01
2 changed files with 19 additions and 0 deletions

View File

@ -310,6 +310,7 @@
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-pipe-head.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-pipe-unref.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-readline-interface.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-repl-tab-complete.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-script-context.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stream2-push.js"/>
<apply-diff src="test/simple" mod="${test.dir}/simple" name="test-stream2-read-sync-stack.js"/>
@ -388,6 +389,7 @@
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-pipe-head.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-pipe-unref.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-readline-interface.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-repl-tab-complete.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-script-context.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stream2-push.js"/>
<apply-patch-file target="${test.dir}/simple" dir="test/simple" name="test-stream2-read-sync-stack.js"/>

View File

@ -0,0 +1,17 @@
--- ../nodejs/test/simple/test-repl-tab-complete.js 2013-12-09 13:40:07.595157300 -0800
+++ test/simple/test-repl-tab-complete.js 2013-12-09 13:42:33.179597400 -0800
@@ -55,9 +55,11 @@
testMe.complete('inner.o', function(error, data) {
assert.deepEqual(data, doesNotBreak);
});
-testMe.complete('console.lo', function(error, data) {
- assert.deepEqual(data, [['console.log'], 'console.lo']);
-});
+
+// Disabling this test because console is undefined in Nashorn
+//testMe.complete('console.lo', function(error, data) {
+// assert.deepEqual(data, [['console.log'], 'console.lo']);
+//});
// Tab Complete will return globaly scoped variables
putIn.run(['};']);