Browse Source

add form tests alongside function tests

contingency-plan
Rich-Harris 10 years ago
parent
commit
fb93adc11f
  1. 3
      test/form/no-imports-or-exports/_config.js
  2. 5
      test/form/no-imports-or-exports/_expected/amd.js
  3. 3
      test/form/no-imports-or-exports/_expected/cjs.js
  4. 1
      test/form/no-imports-or-exports/_expected/es6.js
  5. 9
      test/form/no-imports-or-exports/_expected/umd.js
  6. 1
      test/form/no-imports-or-exports/main.js
  7. 0
      test/function/allows-external-modules-from-nested-module/_config.js
  8. 0
      test/function/allows-external-modules-from-nested-module/foo.js
  9. 0
      test/function/allows-external-modules-from-nested-module/main.js
  10. 0
      test/function/bindings/_config.js
  11. 0
      test/function/bindings/foo.js
  12. 0
      test/function/bindings/main.js
  13. 0
      test/function/consistent-renaming-b/_config.js
  14. 0
      test/function/consistent-renaming-b/altdir/two.js
  15. 0
      test/function/consistent-renaming-b/main.js
  16. 0
      test/function/consistent-renaming-b/subdir/one.js
  17. 0
      test/function/consistent-renaming-b/subdir/two.js
  18. 0
      test/function/consistent-renaming-c/-internal.js
  19. 0
      test/function/consistent-renaming-c/_config.js
  20. 0
      test/function/consistent-renaming-c/main.js
  21. 0
      test/function/consistent-renaming-c/one.js
  22. 0
      test/function/consistent-renaming-c/one/three.js
  23. 0
      test/function/consistent-renaming-c/one/two.js
  24. 0
      test/function/consistent-renaming-c/two.js
  25. 0
      test/function/consistent-renaming-d/Baz.js
  26. 0
      test/function/consistent-renaming-d/_config.js
  27. 0
      test/function/consistent-renaming-d/bar.js
  28. 0
      test/function/consistent-renaming-d/foo.js
  29. 0
      test/function/consistent-renaming-d/foo/baz.js
  30. 0
      test/function/consistent-renaming-d/main.js
  31. 0
      test/function/consistent-renaming-d/rsvp/all-settled.js
  32. 0
      test/function/consistent-renaming-d/rsvp/enumerator.js
  33. 0
      test/function/consistent-renaming-d/rsvp/promise.js
  34. 0
      test/function/consistent-renaming-d/rsvp/promise/all.js
  35. 0
      test/function/consistent-renaming-e/_config.js
  36. 0
      test/function/consistent-renaming-e/a.js
  37. 0
      test/function/consistent-renaming-e/b.js
  38. 0
      test/function/consistent-renaming-e/main.js
  39. 0
      test/function/consistent-renaming-e/utils.js
  40. 0
      test/function/consistent-renaming/_config.js
  41. 0
      test/function/consistent-renaming/main.js
  42. 0
      test/function/consistent-renaming/one.js
  43. 0
      test/function/consistent-renaming/three.js
  44. 0
      test/function/consistent-renaming/two.js
  45. 0
      test/function/custom-path-resolver-async/_config.js
  46. 0
      test/function/custom-path-resolver-async/bar.js
  47. 0
      test/function/custom-path-resolver-async/main.js
  48. 0
      test/function/custom-path-resolver-sync/_config.js
  49. 0
      test/function/custom-path-resolver-sync/bar.js
  50. 0
      test/function/custom-path-resolver-sync/main.js
  51. 0
      test/function/cycles-defaults/_config.js
  52. 0
      test/function/cycles-defaults/a.js
  53. 0
      test/function/cycles-defaults/b.js
  54. 0
      test/function/cycles-defaults/main.js
  55. 0
      test/function/cycles-immediate/_config.js
  56. 0
      test/function/cycles-immediate/evens.js
  57. 0
      test/function/cycles-immediate/main.js
  58. 0
      test/function/cycles-immediate/odds.js
  59. 0
      test/function/default-export-is-not-bound/_config.js
  60. 0
      test/function/default-export-is-not-bound/foo.js
  61. 0
      test/function/default-export-is-not-bound/main.js
  62. 0
      test/function/duplicate-import-fails/_config.js
  63. 0
      test/function/duplicate-import-fails/foo.js
  64. 0
      test/function/duplicate-import-fails/main.js
  65. 0
      test/function/duplicate-import-specifier-fails/_config.js
  66. 0
      test/function/duplicate-import-specifier-fails/foo.js
  67. 0
      test/function/duplicate-import-specifier-fails/main.js
  68. 0
      test/function/empty-imports-have-side-effects/_config.js
  69. 0
      test/function/empty-imports-have-side-effects/foo.js
  70. 0
      test/function/empty-imports-have-side-effects/main.js
  71. 0
      test/function/export-deconflicted-names/_config.js
  72. 0
      test/function/export-deconflicted-names/bar.js
  73. 0
      test/function/export-deconflicted-names/baz.js
  74. 0
      test/function/export-deconflicted-names/foo.js
  75. 0
      test/function/export-deconflicted-names/main.js
  76. 0
      test/function/export-default-expression/_config.js
  77. 0
      test/function/export-default-expression/main.js
  78. 0
      test/function/export-from-default/_config.js
  79. 0
      test/function/export-from-default/first.js
  80. 0
      test/function/export-from-default/main.js
  81. 0
      test/function/export-from-default/second.js
  82. 0
      test/function/export-from-internal-module/_config.js
  83. 0
      test/function/export-from-internal-module/foo.js
  84. 0
      test/function/export-from-internal-module/main.js
  85. 0
      test/function/export-from-no-local-binding/_config.js
  86. 0
      test/function/export-from-no-local-binding/first.js
  87. 0
      test/function/export-from-no-local-binding/main.js
  88. 0
      test/function/export-from-no-local-binding/second.js
  89. 0
      test/function/export-not-at-top-level-fails/_config.js
  90. 0
      test/function/export-not-at-top-level-fails/main.js
  91. 0
      test/function/exports-named-values/_config.js
  92. 0
      test/function/exports-named-values/main.js
  93. 0
      test/function/function-side-effects/_config.js
  94. 0
      test/function/function-side-effects/main.js
  95. 0
      test/function/function-side-effects/mutate.js
  96. 0
      test/function/function-side-effects/object.js
  97. 0
      test/function/import-as/_config.js
  98. 0
      test/function/import-as/foo.js
  99. 0
      test/function/import-as/main.js
  100. 0
      test/function/import-binding/_config.js

3
test/form/no-imports-or-exports/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'single module, no imports or exports'
};

5
test/form/no-imports-or-exports/_expected/amd.js

@ -0,0 +1,5 @@
define(function () { 'use strict';
console.log( 'this is it' );
});

3
test/form/no-imports-or-exports/_expected/cjs.js

@ -0,0 +1,3 @@
'use strict';
console.log( 'this is it' );

1
test/form/no-imports-or-exports/_expected/es6.js

@ -0,0 +1 @@
console.log( 'this is it' );

9
test/form/no-imports-or-exports/_expected/umd.js

@ -0,0 +1,9 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(this, function () { 'use strict';
console.log( 'this is it' );
}));

1
test/form/no-imports-or-exports/main.js

@ -0,0 +1 @@
console.log( 'this is it' );

0
test/samples/allows-external-modules-from-nested-module/_config.js → test/function/allows-external-modules-from-nested-module/_config.js

0
test/samples/allows-external-modules-from-nested-module/foo.js → test/function/allows-external-modules-from-nested-module/foo.js

0
test/samples/allows-external-modules-from-nested-module/main.js → test/function/allows-external-modules-from-nested-module/main.js

0
test/samples/bindings/_config.js → test/function/bindings/_config.js

0
test/samples/bindings/foo.js → test/function/bindings/foo.js

0
test/samples/bindings/main.js → test/function/bindings/main.js

0
test/samples/consistent-renaming-b/_config.js → test/function/consistent-renaming-b/_config.js

0
test/samples/consistent-renaming-b/altdir/two.js → test/function/consistent-renaming-b/altdir/two.js

0
test/samples/consistent-renaming-b/main.js → test/function/consistent-renaming-b/main.js

0
test/samples/consistent-renaming-b/subdir/one.js → test/function/consistent-renaming-b/subdir/one.js

0
test/samples/consistent-renaming-b/subdir/two.js → test/function/consistent-renaming-b/subdir/two.js

0
test/samples/consistent-renaming-c/-internal.js → test/function/consistent-renaming-c/-internal.js

0
test/samples/consistent-renaming-c/_config.js → test/function/consistent-renaming-c/_config.js

0
test/samples/consistent-renaming-c/main.js → test/function/consistent-renaming-c/main.js

0
test/samples/consistent-renaming-c/one.js → test/function/consistent-renaming-c/one.js

0
test/samples/consistent-renaming-c/one/three.js → test/function/consistent-renaming-c/one/three.js

0
test/samples/consistent-renaming-c/one/two.js → test/function/consistent-renaming-c/one/two.js

0
test/samples/consistent-renaming-c/two.js → test/function/consistent-renaming-c/two.js

0
test/samples/consistent-renaming-d/Baz.js → test/function/consistent-renaming-d/Baz.js

0
test/samples/consistent-renaming-d/_config.js → test/function/consistent-renaming-d/_config.js

0
test/samples/consistent-renaming-d/bar.js → test/function/consistent-renaming-d/bar.js

0
test/samples/consistent-renaming-d/foo.js → test/function/consistent-renaming-d/foo.js

0
test/samples/consistent-renaming-d/foo/baz.js → test/function/consistent-renaming-d/foo/baz.js

0
test/samples/consistent-renaming-d/main.js → test/function/consistent-renaming-d/main.js

0
test/samples/consistent-renaming-d/rsvp/all-settled.js → test/function/consistent-renaming-d/rsvp/all-settled.js

0
test/samples/consistent-renaming-d/rsvp/enumerator.js → test/function/consistent-renaming-d/rsvp/enumerator.js

0
test/samples/consistent-renaming-d/rsvp/promise.js → test/function/consistent-renaming-d/rsvp/promise.js

0
test/samples/consistent-renaming-d/rsvp/promise/all.js → test/function/consistent-renaming-d/rsvp/promise/all.js

0
test/samples/consistent-renaming-e/_config.js → test/function/consistent-renaming-e/_config.js

0
test/samples/consistent-renaming-e/a.js → test/function/consistent-renaming-e/a.js

0
test/samples/consistent-renaming-e/b.js → test/function/consistent-renaming-e/b.js

0
test/samples/consistent-renaming-e/main.js → test/function/consistent-renaming-e/main.js

0
test/samples/consistent-renaming-e/utils.js → test/function/consistent-renaming-e/utils.js

0
test/samples/consistent-renaming/_config.js → test/function/consistent-renaming/_config.js

0
test/samples/consistent-renaming/main.js → test/function/consistent-renaming/main.js

0
test/samples/consistent-renaming/one.js → test/function/consistent-renaming/one.js

0
test/samples/consistent-renaming/three.js → test/function/consistent-renaming/three.js

0
test/samples/consistent-renaming/two.js → test/function/consistent-renaming/two.js

0
test/samples/custom-path-resolver-async/_config.js → test/function/custom-path-resolver-async/_config.js

0
test/samples/custom-path-resolver-async/bar.js → test/function/custom-path-resolver-async/bar.js

0
test/samples/custom-path-resolver-async/main.js → test/function/custom-path-resolver-async/main.js

0
test/samples/custom-path-resolver-sync/_config.js → test/function/custom-path-resolver-sync/_config.js

0
test/samples/custom-path-resolver-sync/bar.js → test/function/custom-path-resolver-sync/bar.js

0
test/samples/custom-path-resolver-sync/main.js → test/function/custom-path-resolver-sync/main.js

0
test/samples/cycles-defaults/_config.js → test/function/cycles-defaults/_config.js

0
test/samples/cycles-defaults/a.js → test/function/cycles-defaults/a.js

0
test/samples/cycles-defaults/b.js → test/function/cycles-defaults/b.js

0
test/samples/cycles-defaults/main.js → test/function/cycles-defaults/main.js

0
test/samples/cycles-immediate/_config.js → test/function/cycles-immediate/_config.js

0
test/samples/cycles-immediate/evens.js → test/function/cycles-immediate/evens.js

0
test/samples/cycles-immediate/main.js → test/function/cycles-immediate/main.js

0
test/samples/cycles-immediate/odds.js → test/function/cycles-immediate/odds.js

0
test/samples/default-export-is-not-bound/_config.js → test/function/default-export-is-not-bound/_config.js

0
test/samples/default-export-is-not-bound/foo.js → test/function/default-export-is-not-bound/foo.js

0
test/samples/default-export-is-not-bound/main.js → test/function/default-export-is-not-bound/main.js

0
test/samples/duplicate-import-fails/_config.js → test/function/duplicate-import-fails/_config.js

0
test/samples/duplicate-import-fails/foo.js → test/function/duplicate-import-fails/foo.js

0
test/samples/duplicate-import-fails/main.js → test/function/duplicate-import-fails/main.js

0
test/samples/duplicate-import-specifier-fails/_config.js → test/function/duplicate-import-specifier-fails/_config.js

0
test/samples/duplicate-import-specifier-fails/foo.js → test/function/duplicate-import-specifier-fails/foo.js

0
test/samples/duplicate-import-specifier-fails/main.js → test/function/duplicate-import-specifier-fails/main.js

0
test/samples/empty-imports-have-side-effects/_config.js → test/function/empty-imports-have-side-effects/_config.js

0
test/samples/empty-imports-have-side-effects/foo.js → test/function/empty-imports-have-side-effects/foo.js

0
test/samples/empty-imports-have-side-effects/main.js → test/function/empty-imports-have-side-effects/main.js

0
test/samples/export-deconflicted-names/_config.js → test/function/export-deconflicted-names/_config.js

0
test/samples/export-deconflicted-names/bar.js → test/function/export-deconflicted-names/bar.js

0
test/samples/export-deconflicted-names/baz.js → test/function/export-deconflicted-names/baz.js

0
test/samples/export-deconflicted-names/foo.js → test/function/export-deconflicted-names/foo.js

0
test/samples/export-deconflicted-names/main.js → test/function/export-deconflicted-names/main.js

0
test/samples/export-default-expression/_config.js → test/function/export-default-expression/_config.js

0
test/samples/export-default-expression/main.js → test/function/export-default-expression/main.js

0
test/samples/export-from-default/_config.js → test/function/export-from-default/_config.js

0
test/samples/export-from-default/first.js → test/function/export-from-default/first.js

0
test/samples/export-from-default/main.js → test/function/export-from-default/main.js

0
test/samples/export-from-default/second.js → test/function/export-from-default/second.js

0
test/samples/export-from-internal-module/_config.js → test/function/export-from-internal-module/_config.js

0
test/samples/export-from-internal-module/foo.js → test/function/export-from-internal-module/foo.js

0
test/samples/export-from-internal-module/main.js → test/function/export-from-internal-module/main.js

0
test/samples/export-from-no-local-binding/_config.js → test/function/export-from-no-local-binding/_config.js

0
test/samples/export-from-no-local-binding/first.js → test/function/export-from-no-local-binding/first.js

0
test/samples/export-from-no-local-binding/main.js → test/function/export-from-no-local-binding/main.js

0
test/samples/export-from-no-local-binding/second.js → test/function/export-from-no-local-binding/second.js

0
test/samples/export-not-at-top-level-fails/_config.js → test/function/export-not-at-top-level-fails/_config.js

0
test/samples/export-not-at-top-level-fails/main.js → test/function/export-not-at-top-level-fails/main.js

0
test/samples/exports-named-values/_config.js → test/function/exports-named-values/_config.js

0
test/samples/exports-named-values/main.js → test/function/exports-named-values/main.js

0
test/samples/function-side-effects/_config.js → test/function/function-side-effects/_config.js

0
test/samples/function-side-effects/main.js → test/function/function-side-effects/main.js

0
test/samples/function-side-effects/mutate.js → test/function/function-side-effects/mutate.js

0
test/samples/function-side-effects/object.js → test/function/function-side-effects/object.js

0
test/samples/import-as/_config.js → test/function/import-as/_config.js

0
test/samples/import-as/foo.js → test/function/import-as/foo.js

0
test/samples/import-as/main.js → test/function/import-as/main.js

0
test/samples/import-binding/_config.js → test/function/import-binding/_config.js

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save