Browse Source

failing test for #164

better-aggressive
Rich-Harris 9 years ago
parent
commit
e5120f3928
  1. 3
      test/form/string-indentation/_config.js
  2. 20
      test/form/string-indentation/_expected/amd.js
  3. 18
      test/form/string-indentation/_expected/cjs.js
  4. 16
      test/form/string-indentation/_expected/es6.js
  5. 20
      test/form/string-indentation/_expected/iife.js
  6. 24
      test/form/string-indentation/_expected/umd.js
  7. 16
      test/form/string-indentation/main.js

3
test/form/string-indentation/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'indentation is preserved in multi-line strings'
};

20
test/form/string-indentation/_expected/amd.js

@ -0,0 +1,20 @@
define(function () { 'use strict';
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );
});

18
test/form/string-indentation/_expected/cjs.js

@ -0,0 +1,18 @@
'use strict';
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );

16
test/form/string-indentation/_expected/es6.js

@ -0,0 +1,16 @@
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );

20
test/form/string-indentation/_expected/iife.js

@ -0,0 +1,20 @@
(function () { 'use strict';
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );
})();

24
test/form/string-indentation/_expected/umd.js

@ -0,0 +1,24 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(this, function () { 'use strict';
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );
}));

16
test/form/string-indentation/main.js

@ -0,0 +1,16 @@
var a = '1\
2';
var b = '1\
2';
var c = `1
2`;
var d = `1
2`;
assert.equal( a, '1\n 2' );
assert.equal( b, '1\n\t2' );
assert.equal( c, '1\n 2' );
assert.equal( d, '1\n\t2' );
Loading…
Cancel
Save