From 45f731f75a016156f2816a0663f316add42e8517 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Mon, 20 Jan 2020 11:00:47 +0100 Subject: [PATCH] Add shadow dom test page --- test/dev-setup.js | 6 +++++ test/index.html | 6 +++-- test/shadow-dom.html | 59 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 test/shadow-dom.html diff --git a/test/dev-setup.js b/test/dev-setup.js index 4cf1c045..c01855c2 100644 --- a/test/dev-setup.js +++ b/test/dev-setup.js @@ -149,6 +149,12 @@ } })(); + self.getCodiconPath = function(PATH_PREFIX) { + PATH_PREFIX = PATH_PREFIX || ''; + const result = RESOLVED_CORE.getResolvedPath(PATH_PREFIX); + return `${result}/base/browser/ui/codiconLabel/codicon/codicon.ttf`; + }; + self.loadEditor = function(callback, PATH_PREFIX) { PATH_PREFIX = PATH_PREFIX || ''; diff --git a/test/index.html b/test/index.html index 960c6ec4..217df5aa 100644 --- a/test/index.html +++ b/test/index.html @@ -16,7 +16,9 @@ Jump to:  |  [scrollable body]  |  -[scrollable element] +[scrollable element]
+ |  +[Shadow DOM]  |  [colorize element]  |  @@ -39,4 +41,4 @@ Jump to: }); - \ No newline at end of file + diff --git a/test/shadow-dom.html b/test/shadow-dom.html new file mode 100644 index 00000000..79580be3 --- /dev/null +++ b/test/shadow-dom.html @@ -0,0 +1,59 @@ + + + + + + + + +

Monaco Editor Shadow DOM

+ +
+
+
+ + + + + + +