1
0
Fork 0

Fixed tests containing unknwon keywords

- Broken from previous commit
closure/master
Mike Gerwitz 2011-05-22 22:21:32 -04:00
parent 76bc7361d3
commit fe02c78f1d
2 changed files with 6 additions and 6 deletions

View File

@ -38,7 +38,7 @@ var common = require( './common' ),
var val = [ 'baz' ], var val = [ 'baz' ],
Foo = builder.build( Foo = builder.build(
{ {
'public function test': function() 'public test': function()
{ {
return this.__self; return this.__self;
}, },

View File

@ -129,12 +129,12 @@ var common = require( './common' ),
var data = { var data = {
'public foo': '', 'public foo': '',
'const foo2': '', 'const foo2': '',
'public bogus keywords foo3': '', 'public private const foo3': '',
'public static final method': function() {}, 'public static final method': function() {},
// tricky tricky // tricky tricky (lots of spaces)
'lots of spaces': function() {}, 'public const spaces': function() {},
}, },
parsed_keywords = {}, parsed_keywords = {},
@ -142,11 +142,11 @@ var common = require( './common' ),
expected = { expected = {
foo: { 'public': true }, foo: { 'public': true },
foo2: { 'const': true }, foo2: { 'const': true },
foo3: { 'public': true, 'bogus': true, 'keywords': true }, foo3: { 'public': true, 'private': true, 'const': true },
method: { 'public': true, 'static': true, 'final': true }, method: { 'public': true, 'static': true, 'final': true },
spaces: { 'lots': true, 'of': true }, spaces: { 'public': true, 'const': true },
} }
; ;