Generate tests

This commit is contained in:
Leo Balter 2018-10-05 10:33:48 -04:00
parent 972fff9e17
commit 18f1225570
3 changed files with 24 additions and 3 deletions

View File

@ -34,4 +34,9 @@ info: |
---*/
if (true) import('./eval-gtbndng-indirect-update-dflt_FIXTURE.js');
if (true) import('./eval-gtbndng-indirect-update-dflt_FIXTURE.js').then(imported => {
assert.sameValue(imported.default(), 1);
assert.sameValue(imported.default, 2);
}).then($DONE, $DONE).catch($DONE);

View File

@ -35,4 +35,16 @@ info: |
---*/
if (true) import('./eval-gtbndng-indirect-update_FIXTURE.js');
if (true) import('./eval-gtbndng-indirect-update_FIXTURE.js').then(imported => {
assert.sameValue(imported.x, 1);
// This function is exposed on the global scope (instead of as an exported
// binding) in order to avoid possible false positives from assuming correct
// behavior of the semantics under test.
fnGlobalObject().test262update();
assert.sameValue(imported.x, 2);
}).then($DONE, $DONE).catch($DONE);

View File

@ -22,4 +22,8 @@ info: |
---*/
if (true) import('./dynamic-import-module_FIXTURE.js');
if (true) import('./dynamic-import-module_FIXTURE.js').then(imported => {
assert.sameValue(imported.x, 1);
}).then($DONE, $DONE).catch($DONE);