From 0def62b918f40931d52fc91c0ca5969ac3cc1848 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 31 Oct 2014 21:21:26 +1100 Subject: [PATCH] replace single quotes with double quotes in generaton tests --- .../basic/unnecessary-parenthesized-in/actual.js | 2 +- .../unnecessary-parenthesized-in/expected.js | 2 +- .../{variable-declaration.js => actual.js} | 0 .../comment/block-line-comment/actual.js | 2 +- .../comment/block-line-comment/expected.js | 2 +- .../computed-property-comments-2/actual.js | 4 ++-- .../computed-property-comments-2/expected.js | 4 ++-- .../comment/computed-property-comments/actual.js | 16 ++++++++-------- .../computed-property-comments/expected.js | 16 ++++++++-------- .../comment/if-block-line-comment/actual.js | 2 +- .../comment/if-block-line-comment/expected.js | 2 +- .../generation/comment/if-line-comment/actual.js | 2 +- .../comment/if-line-comment/expected.js | 2 +- .../generation/comment/object_comments/actual.js | 8 ++++---- .../comment/object_comments/expected.js | 6 +++--- .../generation/harmony/arrow-function/actual.js | 4 ++-- .../harmony/arrow-function/expected.js | 4 ++-- .../harmony/computed-property/actual.js | 2 +- .../harmony/computed-property/expected.js | 2 +- .../harmony/destructuring-assignment/actual.js | 2 +- .../harmony/destructuring-assignment/expected.js | 2 +- .../generation/harmony/exports/expected.js | 6 +++--- .../harmony/import-with-default/actual.js | 13 ++++++------- .../harmony/import-with-default/expected.js | 13 ++++++------- .../generation/harmony/imports/actual.js | 8 ++++---- .../generation/harmony/imports/expected.js | 8 ++++---- 26 files changed, 66 insertions(+), 68 deletions(-) rename test/fixtures/generation/basic/variable-declaration/{variable-declaration.js => actual.js} (100%) diff --git a/test/fixtures/generation/basic/unnecessary-parenthesized-in/actual.js b/test/fixtures/generation/basic/unnecessary-parenthesized-in/actual.js index f9fd342e80..9d132c597d 100644 --- a/test/fixtures/generation/basic/unnecessary-parenthesized-in/actual.js +++ b/test/fixtures/generation/basic/unnecessary-parenthesized-in/actual.js @@ -1 +1 @@ -var i = 0 in ['test']; +var i = 0 in ["test"]; diff --git a/test/fixtures/generation/basic/unnecessary-parenthesized-in/expected.js b/test/fixtures/generation/basic/unnecessary-parenthesized-in/expected.js index f9fd342e80..9d132c597d 100644 --- a/test/fixtures/generation/basic/unnecessary-parenthesized-in/expected.js +++ b/test/fixtures/generation/basic/unnecessary-parenthesized-in/expected.js @@ -1 +1 @@ -var i = 0 in ['test']; +var i = 0 in ["test"]; diff --git a/test/fixtures/generation/basic/variable-declaration/variable-declaration.js b/test/fixtures/generation/basic/variable-declaration/actual.js similarity index 100% rename from test/fixtures/generation/basic/variable-declaration/variable-declaration.js rename to test/fixtures/generation/basic/variable-declaration/actual.js diff --git a/test/fixtures/generation/comment/block-line-comment/actual.js b/test/fixtures/generation/comment/block-line-comment/actual.js index 13ab7155d9..ddc9499b49 100644 --- a/test/fixtures/generation/comment/block-line-comment/actual.js +++ b/test/fixtures/generation/comment/block-line-comment/actual.js @@ -1,4 +1,4 @@ // Leading to block { - print('hello'); + print("hello"); } diff --git a/test/fixtures/generation/comment/block-line-comment/expected.js b/test/fixtures/generation/comment/block-line-comment/expected.js index fc0f85872d..66b454480f 100644 --- a/test/fixtures/generation/comment/block-line-comment/expected.js +++ b/test/fixtures/generation/comment/block-line-comment/expected.js @@ -1,4 +1,4 @@ // Leading to block { - print('hello'); + print("hello"); } diff --git a/test/fixtures/generation/comment/computed-property-comments-2/actual.js b/test/fixtures/generation/comment/computed-property-comments-2/actual.js index 00728f8c47..edb4b89930 100644 --- a/test/fixtures/generation/comment/computed-property-comments-2/actual.js +++ b/test/fixtures/generation/comment/computed-property-comments-2/actual.js @@ -2,9 +2,9 @@ var test = { /** * Before bracket init */ - ['a']:'1', + ["a"]:"1", [/* * Inside bracket init */ - 'b']:'2' + "b"]:"2" }, ok = 42; diff --git a/test/fixtures/generation/comment/computed-property-comments-2/expected.js b/test/fixtures/generation/comment/computed-property-comments-2/expected.js index 05464111c0..19e3b66fef 100644 --- a/test/fixtures/generation/comment/computed-property-comments-2/expected.js +++ b/test/fixtures/generation/comment/computed-property-comments-2/expected.js @@ -2,9 +2,9 @@ var test = { /** * Before bracket init */ - ['a']: '1', + ["a"]: "1", [/* * Inside bracket init */ - 'b']: '2' + "b"]: "2" }, ok = 42; diff --git a/test/fixtures/generation/comment/computed-property-comments/actual.js b/test/fixtures/generation/comment/computed-property-comments/actual.js index 16cdc21615..dfda0f2f22 100644 --- a/test/fixtures/generation/comment/computed-property-comments/actual.js +++ b/test/fixtures/generation/comment/computed-property-comments/actual.js @@ -2,27 +2,27 @@ var test = { /** * Before bracket init */ - ['a']:'1', + ["a"]:"1", [/* * Inside bracket init */ - 'b']:'2', + "b"]:"2", - ['c' + ["c" /* * After bracket key - */]:'3', + */]:"3", // Before bracket, line comment [ - 'd']:'4', + "d"]:"4", [ // Inside bracket, line comment - 'e']:'5', + "e"]:"5", - ['f' + ["f" // After bracket, line comment - ]:'6' + ]:"6" }; diff --git a/test/fixtures/generation/comment/computed-property-comments/expected.js b/test/fixtures/generation/comment/computed-property-comments/expected.js index 042316fe50..435c03e225 100644 --- a/test/fixtures/generation/comment/computed-property-comments/expected.js +++ b/test/fixtures/generation/comment/computed-property-comments/expected.js @@ -2,18 +2,18 @@ var test = { /** * Before bracket init */ - ['a']: '1', + ["a"]: "1", [/* * Inside bracket init */ - 'b']: '2', - ['c' /* + "b"]: "2", + ["c" /* * After bracket key - */]: '3', + */]: "3", // Before bracket, line comment - ['d']: '4', + ["d"]: "4", [// Inside bracket, line comment - 'e']: '5', - ['f' // After bracket, line comment -]: '6' + "e"]: "5", + ["f" // After bracket, line comment +]: "6" }; diff --git a/test/fixtures/generation/comment/if-block-line-comment/actual.js b/test/fixtures/generation/comment/if-block-line-comment/actual.js index 4042e28fe9..394e517f28 100644 --- a/test/fixtures/generation/comment/if-block-line-comment/actual.js +++ b/test/fixtures/generation/comment/if-block-line-comment/actual.js @@ -1,5 +1,5 @@ if (cond) // Leading to if-block { - print('hello'); + print("hello"); } // Trailing to if-block diff --git a/test/fixtures/generation/comment/if-block-line-comment/expected.js b/test/fixtures/generation/comment/if-block-line-comment/expected.js index 5ae7a6e03b..91575f6a1b 100644 --- a/test/fixtures/generation/comment/if-block-line-comment/expected.js +++ b/test/fixtures/generation/comment/if-block-line-comment/expected.js @@ -1,5 +1,5 @@ if (cond) // Leading to if-block { - print('hello'); + print("hello"); } // Trailing to if-block diff --git a/test/fixtures/generation/comment/if-line-comment/actual.js b/test/fixtures/generation/comment/if-line-comment/actual.js index b56aa0619b..240ed92faa 100644 --- a/test/fixtures/generation/comment/if-line-comment/actual.js +++ b/test/fixtures/generation/comment/if-line-comment/actual.js @@ -1,5 +1,5 @@ function test() { // Leading if statement - if (cond) {print('hello') } + if (cond) {print("hello") } // Trailing if-block statement } diff --git a/test/fixtures/generation/comment/if-line-comment/expected.js b/test/fixtures/generation/comment/if-line-comment/expected.js index 895f8b6d1e..86f2f01c49 100644 --- a/test/fixtures/generation/comment/if-line-comment/expected.js +++ b/test/fixtures/generation/comment/if-line-comment/expected.js @@ -1,6 +1,6 @@ function test() { // Leading if statement if (cond) { - print('hello'); + print("hello"); } // Trailing if-block statement } diff --git a/test/fixtures/generation/comment/object_comments/actual.js b/test/fixtures/generation/comment/object_comments/actual.js index 4a929ef100..e7ddbb3f5c 100644 --- a/test/fixtures/generation/comment/object_comments/actual.js +++ b/test/fixtures/generation/comment/object_comments/actual.js @@ -2,11 +2,11 @@ var test = { /** * Test 2 */ - a:'1', + a:"1", /* * Test 1 */ - b:'2', + b:"2", // Test 3 - c:'3' -}; \ No newline at end of file + c:"3" +}; diff --git a/test/fixtures/generation/comment/object_comments/expected.js b/test/fixtures/generation/comment/object_comments/expected.js index 2c62424076..ca05db01fa 100644 --- a/test/fixtures/generation/comment/object_comments/expected.js +++ b/test/fixtures/generation/comment/object_comments/expected.js @@ -2,11 +2,11 @@ var test = { /** * Test 2 */ - a: '1', + a: "1", /* * Test 1 */ - b: '2', + b: "2", // Test 3 - c: '3' + c: "3" }; diff --git a/test/fixtures/generation/harmony/arrow-function/actual.js b/test/fixtures/generation/harmony/arrow-function/actual.js index dee9149778..563a8a5faf 100644 --- a/test/fixtures/generation/harmony/arrow-function/actual.js +++ b/test/fixtures/generation/harmony/arrow-function/actual.js @@ -1,8 +1,8 @@ e => { - print('hello world'); + print("hello world"); }; (e1, e2, e3) => { - print('hello world'); + print("hello world"); }; e => e; (e1, e2, e3) => e; diff --git a/test/fixtures/generation/harmony/arrow-function/expected.js b/test/fixtures/generation/harmony/arrow-function/expected.js index de012ae894..255bb00112 100644 --- a/test/fixtures/generation/harmony/arrow-function/expected.js +++ b/test/fixtures/generation/harmony/arrow-function/expected.js @@ -1,8 +1,8 @@ e => { - print('hello world'); + print("hello world"); }; (e1, e2, e3) => { - print('hello world'); + print("hello world"); }; e => e; (e1, e2, e3) => e; diff --git a/test/fixtures/generation/harmony/computed-property/actual.js b/test/fixtures/generation/harmony/computed-property/actual.js index 308549f694..40cd4fac15 100644 --- a/test/fixtures/generation/harmony/computed-property/actual.js +++ b/test/fixtures/generation/harmony/computed-property/actual.js @@ -11,6 +11,6 @@ var object3 = { }; var object4 = { // Normal Property - [Symbol.xxx]: 'hello', + [Symbol.xxx]: "hello", [ok()]: 42, }; diff --git a/test/fixtures/generation/harmony/computed-property/expected.js b/test/fixtures/generation/harmony/computed-property/expected.js index 4900da494d..e5ddc2ace8 100644 --- a/test/fixtures/generation/harmony/computed-property/expected.js +++ b/test/fixtures/generation/harmony/computed-property/expected.js @@ -13,6 +13,6 @@ var object3 = { } }; var object4 = { - [Symbol.xxx]: 'hello', + [Symbol.xxx]: "hello", [ok()]: 42 }; diff --git a/test/fixtures/generation/harmony/destructuring-assignment/actual.js b/test/fixtures/generation/harmony/destructuring-assignment/actual.js index 76ca7c66e0..1d69048e9d 100644 --- a/test/fixtures/generation/harmony/destructuring-assignment/actual.js +++ b/test/fixtures/generation/harmony/destructuring-assignment/actual.js @@ -16,4 +16,4 @@ var { } = obj; var [obj.hello] = prop; var [obj.hello, ...obj.ok] = prop; -var [obj.hello, ...obj['hello']] = prop; +var [obj.hello, ...obj["hello"]] = prop; diff --git a/test/fixtures/generation/harmony/destructuring-assignment/expected.js b/test/fixtures/generation/harmony/destructuring-assignment/expected.js index 227c366b1e..f3d6bb4e43 100644 --- a/test/fixtures/generation/harmony/destructuring-assignment/expected.js +++ b/test/fixtures/generation/harmony/destructuring-assignment/expected.js @@ -24,5 +24,5 @@ var [ ] = prop; var [ obj.hello, - ...obj['hello'] + ...obj["hello"] ] = prop; diff --git a/test/fixtures/generation/harmony/exports/expected.js b/test/fixtures/generation/harmony/exports/expected.js index e85a78edcc..31e393a718 100644 --- a/test/fixtures/generation/harmony/exports/expected.js +++ b/test/fixtures/generation/harmony/exports/expected.js @@ -1,11 +1,11 @@ -export * from 'OK'; +export * from "OK"; export { name -} from 'OK'; +} from "OK"; export { a as b, c as d -} from 'hello'; +} from "hello"; export { a as b, c as d diff --git a/test/fixtures/generation/harmony/import-with-default/actual.js b/test/fixtures/generation/harmony/import-with-default/actual.js index 5e55c4ff0c..7fb048846d 100644 --- a/test/fixtures/generation/harmony/import-with-default/actual.js +++ b/test/fixtures/generation/harmony/import-with-default/actual.js @@ -1,8 +1,7 @@ -import foo from 'foo'; -import foo, * as foo from 'foo'; -import * as foo from 'foo'; +import foo from "foo"; +import * as foo from "foo"; import ok, { - foo as bar, - test as testing, - logging -} from 'foo'; + foo as bar, + test as testing, + logging +} from "foo"; diff --git a/test/fixtures/generation/harmony/import-with-default/expected.js b/test/fixtures/generation/harmony/import-with-default/expected.js index 5e55c4ff0c..7fb048846d 100644 --- a/test/fixtures/generation/harmony/import-with-default/expected.js +++ b/test/fixtures/generation/harmony/import-with-default/expected.js @@ -1,8 +1,7 @@ -import foo from 'foo'; -import foo, * as foo from 'foo'; -import * as foo from 'foo'; +import foo from "foo"; +import * as foo from "foo"; import ok, { - foo as bar, - test as testing, - logging -} from 'foo'; + foo as bar, + test as testing, + logging +} from "foo"; diff --git a/test/fixtures/generation/harmony/imports/actual.js b/test/fixtures/generation/harmony/imports/actual.js index 04c7f62f94..6f8f4f5ae0 100644 --- a/test/fixtures/generation/harmony/imports/actual.js +++ b/test/fixtures/generation/harmony/imports/actual.js @@ -1,8 +1,8 @@ -import 'foo'; -import {foo} from 'foo'; -import {foo as bar} from 'foo'; +import "foo"; +import {foo} from "foo"; +import {foo as bar} from "foo"; import { foo as bar, test as testing, logging -} from 'foo'; +} from "foo"; diff --git a/test/fixtures/generation/harmony/imports/expected.js b/test/fixtures/generation/harmony/imports/expected.js index b7803897b9..bd5aaab945 100644 --- a/test/fixtures/generation/harmony/imports/expected.js +++ b/test/fixtures/generation/harmony/imports/expected.js @@ -1,8 +1,8 @@ -import 'foo'; -import { foo } from 'foo'; -import { foo as bar } from 'foo'; +import "foo"; +import { foo } from "foo"; +import { foo as bar } from "foo"; import { foo as bar, test as testing, logging -} from 'foo'; +} from "foo";