From f860dc6a4496076d100f906e74d1cc88bdc2f0d4 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 10 Nov 2014 15:34:25 -0800 Subject: [PATCH] Move exports from Document to Module This CL moves the |exports| from Document to the new |Module| interface, matching the spec. Also, the |module| object available to scripts is now really an instance of |Module|. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/703593003 --- .../tests/modules/instance-of-application-expected.txt | 1 + .../src/flutter/tests/modules/instance-of-application.sky | 8 ++++++++ .../flutter/tests/modules/instance-of-module-expected.txt | 1 + engine/src/flutter/tests/modules/instance-of-module.sky | 8 ++++++++ .../tests/modules/resources/instance-of-module-module.sky | 3 +++ 5 files changed, 21 insertions(+) create mode 100644 engine/src/flutter/tests/modules/instance-of-application-expected.txt create mode 100644 engine/src/flutter/tests/modules/instance-of-application.sky create mode 100644 engine/src/flutter/tests/modules/instance-of-module-expected.txt create mode 100644 engine/src/flutter/tests/modules/instance-of-module.sky create mode 100644 engine/src/flutter/tests/modules/resources/instance-of-module-module.sky diff --git a/engine/src/flutter/tests/modules/instance-of-application-expected.txt b/engine/src/flutter/tests/modules/instance-of-application-expected.txt new file mode 100644 index 0000000000..7ef22e9a43 --- /dev/null +++ b/engine/src/flutter/tests/modules/instance-of-application-expected.txt @@ -0,0 +1 @@ +PASS diff --git a/engine/src/flutter/tests/modules/instance-of-application.sky b/engine/src/flutter/tests/modules/instance-of-application.sky new file mode 100644 index 0000000000..9fb7074b8d --- /dev/null +++ b/engine/src/flutter/tests/modules/instance-of-application.sky @@ -0,0 +1,8 @@ + + +
FAIL
+ + diff --git a/engine/src/flutter/tests/modules/instance-of-module-expected.txt b/engine/src/flutter/tests/modules/instance-of-module-expected.txt new file mode 100644 index 0000000000..7ef22e9a43 --- /dev/null +++ b/engine/src/flutter/tests/modules/instance-of-module-expected.txt @@ -0,0 +1 @@ +PASS diff --git a/engine/src/flutter/tests/modules/instance-of-module.sky b/engine/src/flutter/tests/modules/instance-of-module.sky new file mode 100644 index 0000000000..5cb30d0811 --- /dev/null +++ b/engine/src/flutter/tests/modules/instance-of-module.sky @@ -0,0 +1,8 @@ + + + +
FAIL
+ + diff --git a/engine/src/flutter/tests/modules/resources/instance-of-module-module.sky b/engine/src/flutter/tests/modules/resources/instance-of-module-module.sky new file mode 100644 index 0000000000..7e53b2df34 --- /dev/null +++ b/engine/src/flutter/tests/modules/resources/instance-of-module-module.sky @@ -0,0 +1,3 @@ +