From 02512da38de7f99abcc2f673acd1b80daf59c9fe Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 2 Jan 2015 02:59:53 +1100 Subject: [PATCH] fix generation tests with parenthesized expressions and trailing comments --- .../comments/computed-property-comments-2/expected.js | 3 ++- .../comments/computed-property-comments/expected.js | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/fixtures/generation/comments/computed-property-comments-2/expected.js b/test/fixtures/generation/comments/computed-property-comments-2/expected.js index abfa5fb5c4..33d9cbed2f 100644 --- a/test/fixtures/generation/comments/computed-property-comments-2/expected.js +++ b/test/fixtures/generation/comments/computed-property-comments-2/expected.js @@ -6,5 +6,6 @@ var test = { [( /* * Inside bracket init */ - "b")]: "2" + "b" + )]: "2" }, ok = 42; diff --git a/test/fixtures/generation/comments/computed-property-comments/expected.js b/test/fixtures/generation/comments/computed-property-comments/expected.js index 177f5a9146..764826d086 100644 --- a/test/fixtures/generation/comments/computed-property-comments/expected.js +++ b/test/fixtures/generation/comments/computed-property-comments/expected.js @@ -7,7 +7,8 @@ var test = { [( /* * Inside bracket init */ - "b")]: "2", + "b" + )]: "2", ["c" /* @@ -18,8 +19,9 @@ var test = { ["d"]: "4", [( - // Inside bracket, line comment - "e")]: "5", + // Inside bracket, line comment + "e" + )]: "5", ["f" // After bracket, line comment