diff --git a/test/dev-setup.js b/test/dev-setup.js
index 37256763..14923ba8 100644
--- a/test/dev-setup.js
+++ b/test/dev-setup.js
@@ -8,6 +8,11 @@
port = ':' + port;
}
DIRNAME = window.location.protocol + '//' + window.location.hostname + port + window.location.pathname.substr(0, window.location.pathname.lastIndexOf('/'));
+
+ var bases = document.getElementsByTagName('base');
+ if (bases.length > 0) {
+ DIRNAME = DIRNAME + '/' + bases[0].getAttribute('href');
+ }
}
diff --git a/test/index.html b/test/index.html
index 3308e1fa..d78eb4f3 100644
--- a/test/index.html
+++ b/test/index.html
@@ -7,11 +7,11 @@
-Monaco Editor (running from multiple sources)
-
Jump to:
[SMOKETEST]
|
+[PLAYGROUND]
+ |
[fixed element]
|
[scrollable body]
diff --git a/test/playground.generated/creating-the-diffeditor-hello-diff-world.html b/test/playground.generated/creating-the-diffeditor-hello-diff-world.html
new file mode 100644
index 00000000..e40845d8
--- /dev/null
+++ b/test/playground.generated/creating-the-diffeditor-hello-diff-world.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-diffeditor-inline-diff-example.html b/test/playground.generated/creating-the-diffeditor-inline-diff-example.html
new file mode 100644
index 00000000..655644cf
--- /dev/null
+++ b/test/playground.generated/creating-the-diffeditor-inline-diff-example.html
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-diffeditor-multi-line-example.html b/test/playground.generated/creating-the-diffeditor-multi-line-example.html
new file mode 100644
index 00000000..6a85f538
--- /dev/null
+++ b/test/playground.generated/creating-the-diffeditor-multi-line-example.html
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-diffeditor-navigating-a-diff.html b/test/playground.generated/creating-the-diffeditor-navigating-a-diff.html
new file mode 100644
index 00000000..78d6332e
--- /dev/null
+++ b/test/playground.generated/creating-the-diffeditor-navigating-a-diff.html
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-editor-editor-basic-options.html b/test/playground.generated/creating-the-editor-editor-basic-options.html
new file mode 100644
index 00000000..610c72fa
--- /dev/null
+++ b/test/playground.generated/creating-the-editor-editor-basic-options.html
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-editor-hard-wrapping.html b/test/playground.generated/creating-the-editor-hard-wrapping.html
new file mode 100644
index 00000000..6e138ace
--- /dev/null
+++ b/test/playground.generated/creating-the-editor-hard-wrapping.html
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-editor-hello-world.html b/test/playground.generated/creating-the-editor-hello-world.html
new file mode 100644
index 00000000..5cbcec9f
--- /dev/null
+++ b/test/playground.generated/creating-the-editor-hello-world.html
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/creating-the-editor-syntax-highlighting-for-html-elements.html b/test/playground.generated/creating-the-editor-syntax-highlighting-for-html-elements.html
new file mode 100644
index 00000000..d0091ede
--- /dev/null
+++ b/test/playground.generated/creating-the-editor-syntax-highlighting-for-html-elements.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+/* Some example CSS */
+
+@import url("something.css");
+
+body {
+ margin: 0;
+ padding: 3em 6em;
+ font-family: tahoma, arial, sans-serif;
+ color: #000;
+}
+
+#navigation a {
+ font-weight: bold;
+ text-decoration: none !important;
+}
+
+h1 {
+ font-size: 2.5em;
+}
+
+h2 {
+ font-size: 1.7em;
+}
+
+h1:before, h2:before {
+ content: "some contents";
+}
+
+code {
+ font-family: courier, monospace;
+ font-size: 80%;
+ color: #418A8A;
+}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/customizing-the-appearence-exposed-css-classes.html b/test/playground.generated/customizing-the-appearence-exposed-css-classes.html
new file mode 100644
index 00000000..795b5acb
--- /dev/null
+++ b/test/playground.generated/customizing-the-appearence-exposed-css-classes.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/customizing-the-appearence-scrollbars.html b/test/playground.generated/customizing-the-appearence-scrollbars.html
new file mode 100644
index 00000000..03386631
--- /dev/null
+++ b/test/playground.generated/customizing-the-appearence-scrollbars.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/customizing-the-appearence-tokens-and-colors.html b/test/playground.generated/customizing-the-appearence-tokens-and-colors.html
new file mode 100644
index 00000000..05aa974a
--- /dev/null
+++ b/test/playground.generated/customizing-the-appearence-tokens-and-colors.html
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/extending-language-services-completion-provider-example.html b/test/playground.generated/extending-language-services-completion-provider-example.html
new file mode 100644
index 00000000..70f05df0
--- /dev/null
+++ b/test/playground.generated/extending-language-services-completion-provider-example.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/extending-language-services-configure-javascript-defaults.html b/test/playground.generated/extending-language-services-configure-javascript-defaults.html
new file mode 100644
index 00000000..31ec61ff
--- /dev/null
+++ b/test/playground.generated/extending-language-services-configure-javascript-defaults.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/extending-language-services-configure-json-defaults.html b/test/playground.generated/extending-language-services-configure-json-defaults.html
new file mode 100644
index 00000000..6a46dbda
--- /dev/null
+++ b/test/playground.generated/extending-language-services-configure-json-defaults.html
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/extending-language-services-custom-languages.html b/test/playground.generated/extending-language-services-custom-languages.html
new file mode 100644
index 00000000..428d1291
--- /dev/null
+++ b/test/playground.generated/extending-language-services-custom-languages.html
@@ -0,0 +1,159 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/extending-language-services-hover-provider-example.html b/test/playground.generated/extending-language-services-hover-provider-example.html
new file mode 100644
index 00000000..02a2c2e1
--- /dev/null
+++ b/test/playground.generated/extending-language-services-hover-provider-example.html
@@ -0,0 +1,95 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/index.html b/test/playground.generated/index.html
new file mode 100644
index 00000000..2fe1bce9
--- /dev/null
+++ b/test/playground.generated/index.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+Creating the editor > Hello world!
+Creating the editor > Editor basic options
+Creating the editor > Hard wrapping
+Creating the editor > Syntax highlighting for HTML elements
+Interacting with the editor > Adding a command to an editor instance
+Interacting with the editor > Adding an action to an editor instance
+Interacting with the editor > Revealing a position
+Interacting with the editor > Rendering glyphs in the margin
+Interacting with the editor > Line and Inline decorations
+Interacting with the editor > Customizing the line numbers
+Interacting with the editor > Listening to mouse events
+Interacting with the editor > Listening to key events
+Customizing the appearence > Exposed CSS classes
+Customizing the appearence > Scrollbars
+Customizing the appearence > Tokens and colors
+Creating the DiffEditor > Hello diff world!
+Creating the DiffEditor > Multi-line example
+Creating the DiffEditor > Inline Diff Example
+Creating the DiffEditor > Navigating a Diff
+Extending Language Services > Custom languages
+Extending Language Services > Completion provider example
+Extending Language Services > Hover provider example
+Extending Language Services > Configure JavaScript defaults
+Extending Language Services > Configure JSON defaults
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-adding-a-command-to-an-editor-instance.html b/test/playground.generated/interacting-with-the-editor-adding-a-command-to-an-editor-instance.html
new file mode 100644
index 00000000..a09a7b4b
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-adding-a-command-to-an-editor-instance.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html b/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html
new file mode 100644
index 00000000..a7344362
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-adding-an-action-to-an-editor-instance.html
@@ -0,0 +1,119 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-customizing-the-line-numbers.html b/test/playground.generated/interacting-with-the-editor-customizing-the-line-numbers.html
new file mode 100644
index 00000000..86c385c5
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-customizing-the-line-numbers.html
@@ -0,0 +1,71 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-line-and-inline-decorations.html b/test/playground.generated/interacting-with-the-editor-line-and-inline-decorations.html
new file mode 100644
index 00000000..ae4175ee
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-line-and-inline-decorations.html
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html b/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html
new file mode 100644
index 00000000..7e4f2a09
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-listening-to-key-events.html
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-listening-to-mouse-events.html b/test/playground.generated/interacting-with-the-editor-listening-to-mouse-events.html
new file mode 100644
index 00000000..035b5e95
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-listening-to-mouse-events.html
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
Last 3 events:
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-rendering-glyphs-in-the-margin.html b/test/playground.generated/interacting-with-the-editor-rendering-glyphs-in-the-margin.html
new file mode 100644
index 00000000..e64972a9
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-rendering-glyphs-in-the-margin.html
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/playground.generated/interacting-with-the-editor-revealing-a-position.html b/test/playground.generated/interacting-with-the-editor-revealing-a-position.html
new file mode 100644
index 00000000..1464e5c1
--- /dev/null
+++ b/test/playground.generated/interacting-with-the-editor-revealing-a-position.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+[<< BACK]
+THIS IS A GENERATED FILE VIA gulp generate-test-samples
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/website/monarch.html b/website/monarch.html
index 58058fd0..f44f9a63 100644
--- a/website/monarch.html
+++ b/website/monarch.html
@@ -4304,7 +4304,6 @@ return {
}
});
-