Add more module scope related tests with code evaluation by string
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 04:35:18 +0000 (04:35 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2018 04:35:18 +0000 (04:35 +0000)
commitf2d82f097743d8e334dd9fe7d36c8bf1eea37293
treeb625ecc0c1a6e190c815074f5cf809ffa36b3bf9
parent29dadeee4e8bd9ca80f92c2f91774a2d57d94b17
Add more module scope related tests with code evaluation by string
https://bugs.webkit.org/show_bug.cgi?id=181983

Reviewed by Sam Weinig.

JSTests:

Add more module scope related tests. When the original tests are landed,
we do not have browser integration. This patch adds more module scope tests
with dynamically created script evaluation. We add tests with Function
constructor, direct eval, indirect eval, setTimeout, setInterval, and event handlers.

* modules/scopes-eval.js: Added.
(shouldBe):
* modules/scopes.js:
(shouldBe):

LayoutTests:

* js/dom/modules/module-scope-event-handler-expected.txt: Added.
* js/dom/modules/module-scope-event-handler.html: Added.
* js/dom/modules/module-scope-set-interval-expected.txt: Added.
* js/dom/modules/module-scope-set-interval.html: Added.
* js/dom/modules/module-scope-set-timeout-expected.txt: Added.
* js/dom/modules/module-scope-set-timeout.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@227468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JSTests/ChangeLog
JSTests/modules/scopes-eval.js [new file with mode: 0644]
JSTests/modules/scopes.js
LayoutTests/ChangeLog
LayoutTests/js/dom/modules/module-scope-event-handler-expected.txt [new file with mode: 0644]
LayoutTests/js/dom/modules/module-scope-event-handler.html [new file with mode: 0644]
LayoutTests/js/dom/modules/module-scope-set-interval-expected.txt [new file with mode: 0644]
LayoutTests/js/dom/modules/module-scope-set-interval.html [new file with mode: 0644]
LayoutTests/js/dom/modules/module-scope-set-timeout-expected.txt [new file with mode: 0644]
LayoutTests/js/dom/modules/module-scope-set-timeout.html [new file with mode: 0644]