From ed5c15bf3473b2c982cc71d953918cdf95930956 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 19 Feb 2015 23:09:51 -0800 Subject: [PATCH] Make it possible to inherit from any constructable host object This CL makes it possible for authors to extend any host object (e.g., DOM objects) and to use those objects in all the usual places they can be used in the API. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/936193005 --- .../tests/dom/inherit-from-text-expected.txt | 6 ++++ .../flutter/tests/dom/inherit-from-text.sky | 31 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 engine/src/flutter/tests/dom/inherit-from-text-expected.txt create mode 100644 engine/src/flutter/tests/dom/inherit-from-text.sky diff --git a/engine/src/flutter/tests/dom/inherit-from-text-expected.txt b/engine/src/flutter/tests/dom/inherit-from-text-expected.txt new file mode 100644 index 00000000000..879dff8b29a --- /dev/null +++ b/engine/src/flutter/tests/dom/inherit-from-text-expected.txt @@ -0,0 +1,6 @@ +CONSOLE: unittest-suite-wait-for-done +CONSOLE: PASS: should be able to insert in DOM +CONSOLE: +CONSOLE: All 1 tests passed. +CONSOLE: unittest-suite-success +DONE diff --git a/engine/src/flutter/tests/dom/inherit-from-text.sky b/engine/src/flutter/tests/dom/inherit-from-text.sky new file mode 100644 index 00000000000..ffede0634a2 --- /dev/null +++ b/engine/src/flutter/tests/dom/inherit-from-text.sky @@ -0,0 +1,31 @@ + + +