From fe02c78f1dabb4cf6012130053ecf049f043202a Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 22 May 2011 22:21:32 -0400 Subject: [PATCH] Fixed tests containing unknwon keywords - Broken from previous commit --- test/test-class_builder-static.js | 2 +- test/test-util-prop-parse-keywords.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test-class_builder-static.js b/test/test-class_builder-static.js index dd672b8..f214b39 100644 --- a/test/test-class_builder-static.js +++ b/test/test-class_builder-static.js @@ -38,7 +38,7 @@ var common = require( './common' ), var val = [ 'baz' ], Foo = builder.build( { - 'public function test': function() + 'public test': function() { return this.__self; }, diff --git a/test/test-util-prop-parse-keywords.js b/test/test-util-prop-parse-keywords.js index 04da770..35a77d6 100644 --- a/test/test-util-prop-parse-keywords.js +++ b/test/test-util-prop-parse-keywords.js @@ -129,12 +129,12 @@ var common = require( './common' ), var data = { 'public foo': '', 'const foo2': '', - 'public bogus keywords foo3': '', + 'public private const foo3': '', 'public static final method': function() {}, - // tricky tricky - 'lots of spaces': function() {}, + // tricky tricky (lots of spaces) + 'public const spaces': function() {}, }, parsed_keywords = {}, @@ -142,11 +142,11 @@ var common = require( './common' ), expected = { foo: { 'public': 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 }, - spaces: { 'lots': true, 'of': true }, + spaces: { 'public': true, 'const': true }, } ;