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

+ +
+
+
+ + + + + + +