diff --git a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap index eec24b0966..690b599378 100644 --- a/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap +++ b/scm-ui/ui-components/src/__snapshots__/storyshots.test.ts.snap @@ -14,15 +14,53 @@ exports[`Storyshots Annotate Default 1`] = `
-
+
@@ -62,9 +100,10 @@ exports[`Storyshots Annotate Default 1`] = `
style={Object {}}
>
@@ -83,7 +122,7 @@ exports[`Storyshots Annotate Default 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
@@ -160,9 +200,10 @@ exports[`Storyshots Annotate Default 1`] = `
@@ -181,7 +222,7 @@ exports[`Storyshots Annotate Default 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
func
main
- ()
+ (
+
+
+ )
- {
+
+
+
+ {
+
+
+
@@ -331,21 +394,62 @@ exports[`Storyshots Annotate Default 1`] = `
- fmt.Println(
+ fmt
+ .
+
+
+ Println
+
+
+ (
+
+
"Hello World"
)
+
+
+
@@ -389,8 +493,27 @@ exports[`Storyshots Annotate Default 1`] = `
- }
+
+
+
+
+ }
+
+
+
+
@@ -398,7 +521,7 @@ exports[`Storyshots Annotate Default 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
-
+
@@ -496,9 +657,10 @@ exports[`Storyshots Annotate With Avatars 1`] = `
style={Object {}}
>
@@ -517,7 +679,7 @@ exports[`Storyshots Annotate With Avatars 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
@@ -599,9 +762,10 @@ exports[`Storyshots Annotate With Avatars 1`] = `
@@ -620,7 +784,7 @@ exports[`Storyshots Annotate With Avatars 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
func
main
- ()
+ (
+
+
+ )
- {
+
+
+
+ {
+
+
+
@@ -780,21 +966,62 @@ exports[`Storyshots Annotate With Avatars 1`] = `
- fmt.Println(
+ fmt
+ .
+
+
+ Println
+
+
+ (
+
+
"Hello World"
)
+
+
+
@@ -843,8 +1070,27 @@ exports[`Storyshots Annotate With Avatars 1`] = `
- }
+
+
+
+
+ }
+
+
+
+
@@ -852,7 +1098,7 @@ exports[`Storyshots Annotate With Avatars 1`] = `
className="AnnotateLine__Line-h9c4md-4 cjyweO"
>
@@ -4142,7 +4388,7 @@ exports[`Storyshots Diff Binaries 1`] = `
className="panel-block is-paddingless"
>
@@ -4870,7 +5116,7 @@ exports[`Storyshots Diff CollapsingWithFunction 1`] = `
className="panel-block is-paddingless"
>
@@ -5711,7 +5957,7 @@ exports[`Storyshots Diff CollapsingWithFunction 1`] = `
className="panel-block is-paddingless"
>
@@ -6148,7 +6394,7 @@ exports[`Storyshots Diff CollapsingWithFunction 1`] = `
className="panel-block is-paddingless"
>
@@ -6710,7 +6956,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -7274,7 +7520,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -8115,7 +8361,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -8552,7 +8798,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -8989,7 +9235,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -10033,7 +10279,7 @@ exports[`Storyshots Diff Default 1`] = `
className="panel-block is-paddingless"
>
@@ -10554,7 +10800,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -11155,7 +11401,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -12093,7 +12339,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -12602,7 +12848,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -13111,7 +13357,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -14310,7 +14556,7 @@ exports[`Storyshots Diff Expandable 1`] = `
className="panel-block is-paddingless"
>
@@ -14872,7 +15118,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
src/main/java/com/cloudogu/scm/review/events/EventListener.java
@@ -15440,7 +15686,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
src/main/js/ChangeNotification.tsx
@@ -16285,7 +16531,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
src/main/resources/locales/de/plugins.json
@@ -16726,7 +16972,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
src/main/resources/locales/en/plugins.json
@@ -17167,7 +17413,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
src/test/java/com/cloudogu/scm/review/events/ClientTest.java
@@ -18215,7 +18461,7 @@ exports[`Storyshots Diff File Annotation 1`] = `
Main.java
@@ -18754,7 +19000,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -19336,7 +19582,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -20195,7 +20441,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -20650,7 +20896,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -21105,7 +21351,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -22167,7 +22413,7 @@ exports[`Storyshots Diff File Controls 1`] = `
className="panel-block is-paddingless"
>
@@ -22688,7 +22934,7 @@ exports[`Storyshots Diff Hunks 1`] = `
className="panel-block is-paddingless"
>
@@ -23516,7 +23762,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -24092,7 +24338,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -24945,7 +25191,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -25382,7 +25628,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -25819,7 +26065,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -26863,7 +27109,7 @@ exports[`Storyshots Diff Line Annotation 1`] = `
className="panel-block is-paddingless"
>
@@ -27396,7 +27642,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -28000,7 +28246,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -28903,7 +29149,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -29370,7 +29616,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -29837,7 +30083,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -30957,7 +31203,7 @@ exports[`Storyshots Diff OnClick 1`] = `
className="panel-block is-paddingless"
>
@@ -31514,7 +31760,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -32171,7 +32417,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -33102,7 +33348,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -33591,7 +33837,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -34080,7 +34326,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -35293,7 +35539,7 @@ exports[`Storyshots Diff Side-By-Side 1`] = `
className="panel-block is-paddingless"
>
@@ -35887,7 +36133,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -36451,7 +36697,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -37292,7 +37538,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -37729,7 +37975,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -38166,7 +38412,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -39210,7 +39456,7 @@ exports[`Storyshots Diff SyntaxHighlighting 1`] = `
className="panel-block is-paddingless"
>
@@ -39731,7 +39977,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -40332,7 +40578,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -41270,7 +41516,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -41779,7 +42025,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -42288,7 +42534,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -43487,7 +43733,7 @@ exports[`Storyshots Diff WithLinkToFile 1`] = `
className="panel-block is-paddingless"
>
@@ -45345,20 +45591,75 @@ exports[`Storyshots MarkdownView Code without Lang 1`] = `
-
+
@@ -46082,19 +46383,52 @@ Deserunt officia esse aliquip consectetur duis ut labore laborum commodo aliquip
@@ -46204,7 +46538,29 @@ Deserunt officia esse aliquip consectetur duis ut labore laborum commodo aliquip
-
+
package main
import (
@@ -46467,20 +46823,75 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
-
+
@@ -46647,38 +47058,54 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
project
- [
+
- ...
+ [...]
- ]>
+ >
<
build
>
@@ -46731,24 +47166,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
plugins
>
@@ -46770,24 +47213,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
plugin
>
@@ -46803,24 +47254,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
groupId
>
@@ -46830,24 +47289,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
org.apache.maven.plugins
</
groupId
>
@@ -46863,24 +47330,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
artifactId
>
@@ -46890,24 +47365,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
maven-enforcer-plugin
</
artifactId
>
@@ -46923,24 +47406,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
</
plugin
>
@@ -46956,24 +47447,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
plugin
>
@@ -46989,24 +47488,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
groupId
>
@@ -47016,24 +47523,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
org.codehaus.mojo
</
groupId
>
@@ -47049,24 +47564,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
<
artifactId
>
@@ -47076,24 +47599,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
animal-sniffer-maven-plugin
</
artifactId
>
@@ -47109,24 +47640,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
</
plugin
>
@@ -47142,24 +47681,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
</
plugins
>
@@ -47175,24 +47722,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
</
build
>
@@ -47214,24 +47769,32 @@ exports[`Storyshots MarkdownView Xml Code Block 1`] = `
</
project
>
@@ -48188,20 +48751,75 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
-
+
@@ -48326,9 +48944,10 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
@@ -48348,9 +48967,10 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
@@ -48359,7 +48979,22 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
- (
+
+
+
+ (
+
+
+
@@ -48388,9 +49024,10 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
@@ -48402,8 +49039,27 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
- )
+
+
+
+
+ )
+
+
+
+
func
main
- ()
+ (
+
+
+ )
- {
+
+
+
+ {
+
+
+
- http.HandleFunc(
+ http
+ .
+
+
+ HandleFunc
+
+
+ (
+
+
"/"
- ,
-
-
+ ,
+
+
+
+
+
func
- (w http.ResponseWriter, r *http.Request)
+ (
- {
+ w http
+
+
+ .
+
+
+ ResponseWriter
+
+
+ ,
+
+
+ r
+
+
+ *
+
+
+ http
+
+
+ .
+
+
+ Request
+
+
+ )
+
+
+
+
+
+ {
+
+
+
- fmt.Fprintf(w,
+ fmt
+ .
+
+
+ Fprintf
+
+
+ (
+
+
+ w
+
+
+ ,
+
+
+
+
+
"Welcome to my website!"
)
+
+
+
- })
+
+
+
+
+ }
+
+
+ )
+
+
+
+
- fs := http.FileServer(http.Dir(
+ fs
+ :=
+
+
+ http
+
+
+ .
+
+
+ FileServer
+
+
+ (
+
+
+ http
+
+
+ .
+
+
+ Dir
+
+
+ (
+
+
"static/"
+
+ )
+
+
+ )
+
- ))
+
- http.Handle(
+ http
+ .
+
+
+ Handle
+
+
+ (
+
+
"/static/"
- , http.StripPrefix(
-
-
+ ,
+
+
+ http
+
+
+ .
+
+
+ StripPrefix
+
+
+ (
+
+
"/static/"
+
+ ,
+
- , fs))
+ fs
+
+
+ )
+
+
+ )
+
+
+
@@ -48591,39 +49697,110 @@ exports[`Storyshots SyntaxHighlighter Go 1`] = `
- http.ListenAndServe(
+ http
+ .
+
+
+ ListenAndServe
+
+
+ (
+
+
":80"
- ,
-
-
+ ,
+
+
+
+
+
nil
)
+
+
+
- }
+
+
+
+
+ }
+
+
+
+
@@ -48638,20 +49815,75 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
-
+
@@ -48874,9 +50106,10 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
@@ -48885,7 +50118,44 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- com.example;
+
+
+
+ com
+
+
+ .
+
+
+ example
+
+
+ ;
+
+
+
@@ -48896,9 +50166,10 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
@@ -48907,7 +50178,60 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- java.io.IOException;
+
+
+
+ java
+
+
+ .
+
+
+ io
+
+
+ .
+
+
+ IOException
+
+
+ ;
+
+
+
@@ -48927,7 +50252,60 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- java.io.OutputStream;
+
+
+
+ java
+
+
+ .
+
+
+ io
+
+
+ .
+
+
+ OutputStream
+
+
+ ;
+
+
+
@@ -48947,7 +50326,60 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- java.net.InetSocketAddress;
+
+
+
+ java
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ InetSocketAddress
+
+
+ ;
+
+
+
@@ -48958,9 +50390,10 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
@@ -48969,7 +50402,92 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- com.sun.net.httpserver.HttpExchange;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpExchange
+
+
+ ;
+
+
+
@@ -48989,7 +50508,92 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- com.sun.net.httpserver.HttpHandler;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpHandler
+
+
+ ;
+
+
+
@@ -49009,7 +50614,92 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- com.sun.net.httpserver.HttpServer;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpServer
+
+
+ ;
+
+
+
@@ -49020,9 +50710,10 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
@@ -49034,42 +50725,45 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
class
Test
{
+
+
+
@@ -49080,121 +50774,231 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
public
static
void
main
- (String[] args)
+ (
+ String
+
+
+ [
+
+
+ ]
+
+
+ args
+
+
+ )
+
+
throws
- Exception
+
+
+
+ Exception
+
+
+
{
+
+
+
- HttpServer server = HttpServer.create(
+
+ HttpServer
+
+
+ server
+
+
+ =
+
+
+
+
+
+ HttpServer
+
+
+ .
+
+
+ create
+
+
+ (
+
+
@@ -49203,60 +51007,160 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- InetSocketAddress(
+
+ InetSocketAddress
+
+
+ (
+
+
8000
- ),
-
-
+ )
+
+
+ ,
+
+
+
+
+
0
+
+ )
+
+
+ ;
+
- );
+
- server.createContext(
+ server
+ .
+
+
+ createContext
+
+
+ (
+
+
"/test"
- ,
-
-
+ ,
+
+
+
+
+
@@ -49265,32 +51169,135 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- MyHandler());
+
+
+
+ MyHandler
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
- server.setExecutor(
+ server
+ .
+
+
+ setExecutor
+
+
+ (
+
+
null
- );
-
-
+ )
+
+
+ ;
+
+
+
+
+
@@ -49302,10 +51309,88 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
- server.start();
-
+
+ server
+
+
+ .
+
+
+ start
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
@@ -49328,75 +51414,71 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
class
MyHandler
implements
HttpHandler
{
+
+
+
@@ -49425,148 +51508,627 @@ exports[`Storyshots SyntaxHighlighter Java 1`] = `
public
void
handle
- (HttpExchange t)
+ (
+ HttpExchange
+
+
+ t
+
+
+ )
+
+
throws
- IOException
+
+
+
+ IOException
+
+
+
{
+
+
+
- String response =
+
+ String
+
+
+ response
+
+
+ =
+
+
+
+
+
"This is the response"
;
+
+
+
- t.sendResponseHeaders(
+ t
+ .
+
+
+ sendResponseHeaders
+
+
+ (
+
+
200
+
+ ,
+
- , response.length());
+ response
+
+
+ .
+
+
+ length
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
- OutputStream os = t.getResponseBody();
-
- os.write(response.getBytes());
-
- os.close();
-
+
+
+
+
+ OutputStream
+
+
+ os
+
+
+ =
+
+
+ t
+
+
+ .
+
+
+ getResponseBody
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+ os
+
+
+ .
+
+
+ write
+
+
+ (
+
+
+ response
+
+
+ .
+
+
+ getBytes
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+ os
+
+
+ .
+
+
+ close
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
- }
+
+
+
+
+ }
+
+
+
+
@@ -49581,20 +52143,75 @@ exports[`Storyshots SyntaxHighlighter Javascript 1`] = `
-
+
@@ -49649,9 +52266,10 @@ exports[`Storyshots SyntaxHighlighter Javascript 1`] = `
@@ -49660,35 +52278,78 @@ exports[`Storyshots SyntaxHighlighter Javascript 1`] = `
- http =
+ http
+ =
+
+
+
+
+
require
(
'http'
+
+ )
+
+
+ ;
+
- );
+
@@ -49696,139 +52357,478 @@ exports[`Storyshots SyntaxHighlighter Javascript 1`] = `
- http.createServer(
+ http
+ .
+
+
+ createServer
+
+
+ (
+
+
function
- (
+
- req, res
+ (
+ req
+
+
- )
+ ,
+
+
+ res
+
+
+ )
+
+
+
{
+
+
+
- res.writeHead(
+ res
+ .
+
+
+ writeHead
+
+
+ (
+
+
200
- , {
-
-
+ ,
+
+
+
+
+
+ {
+
+
'Content-Type'
- :
-
-
+ :
+
+
+
+
+
'text/plain'
+
+ }
+
+
+ )
+
+
+ ;
+
- });
+
- res.write(
+ res
+ .
+
+
+ write
+
+
+ (
+
+
'Hello World!'
- );
-
-
- res.end();
-
-
- }).listen(
-
-
+ )
+
+
+ ;
+
+
+
+
+
+
+ res
+
+
+ .
+
+
+ end
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+
+
+
+ }
+
+
+ )
+
+
+ .
+
+
+ listen
+
+
+ (
+
+
8080
+
+ )
+
+
+ ;
+
- );
+
@@ -49845,20 +52845,75 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
-
+
@@ -50004,9 +53059,10 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
@@ -50018,9 +53074,10 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
BaseHTTPServer
@@ -50029,7 +53086,22 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- BaseHTTPRequestHandler,HTTPServer
+ BaseHTTPRequestHandler
+
+
+ ,
+
+
+ HTTPServer
@@ -50037,12 +53109,29 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- PORT_NUMBER =
+ PORT_NUMBER
+ =
+
+
+
+
+
@@ -50062,41 +53151,58 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
class
myHandler
- (BaseHTTPRequestHandler)
+ (
+ BaseHTTPRequestHandler
+
+
+ )
+
+
:
@@ -50114,47 +53220,60 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
def
do_GET
- (self)
+ (
+ self
+
+
+ )
+
+
@@ -50169,77 +53288,250 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- self.send_response(
+ self
+ .
+
+
+ send_response
+
+
+ (
+
+
200
)
+
+
+
- self.send_header(
+ self
+ .
+
+
+ send_header
+
+
+ (
+
+
'Content-type'
,
'text/html'
- )
-
-
- self.end_headers()
-
-
- self.wfile.write(
-
-
+ )
+
+
+
+
+
+
+ self
+
+
+ .
+
+
+ end_headers
+
+
+ (
+
+
+ )
+
+
+
+
+
+
+ self
+
+
+ .
+
+
+ wfile
+
+
+ .
+
+
+ write
+
+
+ (
+
+
"Hello World !"
)
+
+
+
@@ -50270,38 +53563,136 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
try
:
+
+
+
- server = HTTPServer((
+ server
+ =
+
+
+ HTTPServer
+
+
+ (
+
+
+ (
+
+
''
+
+ ,
+
- , PORT_NUMBER), myHandler)
+ PORT_NUMBER
+
+
+ )
+
+
+ ,
+
+
+ myHandler
+
+
+ )
+
+
+
@@ -50324,9 +53716,10 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
@@ -50335,20 +53728,80 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- , PORT_NUMBER
+
+
+
+ ,
+
+
+ PORT_NUMBER
- server.serve_forever()
+
+ server
+
+
+ .
+
+
+ serve_forever
+
+
+ (
+
+
+ )
+
+
+
+
@@ -50357,7 +53810,22 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- KeyboardInterrupt:
+ KeyboardInterrupt
+
+
+ :
+
+
+
@@ -50380,9 +53849,10 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
@@ -50394,8 +53864,67 @@ exports[`Storyshots SyntaxHighlighter Python 1`] = `
- server.socket.close()
+
+ server
+
+
+ .
+
+
+ socket
+
+
+ .
+
+
+ close
+
+
+ (
+
+
+ )
+
+
+
+
@@ -50410,19 +53939,58 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
-
+
@@ -50431,7 +53999,44 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- com.example;
+
+
+
+ com
+
+
+ .
+
+
+ example
+
+
+ ;
+
+
+
@@ -50442,9 +54047,10 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
@@ -50453,7 +54059,60 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- java.io.IOException;
+
+
+
+ java
+
+
+ .
+
+
+ io
+
+
+ .
+
+
+ IOException
+
+
+ ;
+
+
+
@@ -50473,7 +54133,60 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- java.io.OutputStream;
+
+
+
+ java
+
+
+ .
+
+
+ io
+
+
+ .
+
+
+ OutputStream
+
+
+ ;
+
+
+
@@ -50493,7 +54207,60 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- java.net.InetSocketAddress;
+
+
+
+ java
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ InetSocketAddress
+
+
+ ;
+
+
+
@@ -50504,9 +54271,10 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
@@ -50515,7 +54283,92 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- com.sun.net.httpserver.HttpExchange;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpExchange
+
+
+ ;
+
+
+
@@ -50535,7 +54389,92 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- com.sun.net.httpserver.HttpHandler;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpHandler
+
+
+ ;
+
+
+
@@ -50555,7 +54495,92 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- com.sun.net.httpserver.HttpServer;
+
+
+
+ com
+
+
+ .
+
+
+ sun
+
+
+ .
+
+
+ net
+
+
+ .
+
+
+ httpserver
+
+
+ .
+
+
+ HttpServer
+
+
+ ;
+
+
+
@@ -50566,9 +54591,10 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
@@ -50580,42 +54606,45 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
class
Test
{
+
+
+
@@ -50626,121 +54655,231 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
public
static
void
main
- (String[] args)
+ (
+ String
+
+
+ [
+
+
+ ]
+
+
+ args
+
+
+ )
+
+
throws
- Exception
+
+
+
+ Exception
+
+
+
{
+
+
+
- HttpServer server = HttpServer.create(
+
+ HttpServer
+
+
+ server
+
+
+ =
+
+
+
+
+
+ HttpServer
+
+
+ .
+
+
+ create
+
+
+ (
+
+
@@ -50749,60 +54888,160 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- InetSocketAddress(
+
+ InetSocketAddress
+
+
+ (
+
+
8000
- ),
-
-
+ )
+
+
+ ,
+
+
+
+
+
0
+
+ )
+
+
+ ;
+
- );
+
- server.createContext(
+ server
+ .
+
+
+ createContext
+
+
+ (
+
+
"/test"
- ,
-
-
+ ,
+
+
+
+
+
@@ -50811,32 +55050,135 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- MyHandler());
+
+
+
+ MyHandler
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
- server.setExecutor(
+ server
+ .
+
+
+ setExecutor
+
+
+ (
+
+
null
- );
-
-
+ )
+
+
+ ;
+
+
+
+
+
@@ -50848,10 +55190,88 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
- server.start();
-
+
+ server
+
+
+ .
+
+
+ start
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
@@ -50874,75 +55295,71 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
class
MyHandler
implements
HttpHandler
{
+
+
+
@@ -50971,148 +55389,627 @@ exports[`Storyshots SyntaxHighlighter Without line numbers 1`] = `
public
void
handle
- (HttpExchange t)
+ (
+ HttpExchange
+
+
+ t
+
+
+ )
+
+
throws
- IOException
+
+
+
+ IOException
+
+
+
{
+
+
+
- String response =
+
+ String
+
+
+ response
+
+
+ =
+
+
+
+
+
"This is the response"
;
+
+
+
- t.sendResponseHeaders(
+ t
+ .
+
+
+ sendResponseHeaders
+
+
+ (
+
+
200
+
+ ,
+
- , response.length());
+ response
+
+
+ .
+
+
+ length
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
- OutputStream os = t.getResponseBody();
-
- os.write(response.getBytes());
-
- os.close();
-
+
+
+
+
+ OutputStream
+
+
+ os
+
+
+ =
+
+
+ t
+
+
+ .
+
+
+ getResponseBody
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+ os
+
+
+ .
+
+
+ write
+
+
+ (
+
+
+ response
+
+
+ .
+
+
+ getBytes
+
+
+ (
+
+
+ )
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+ os
+
+
+ .
+
+
+ close
+
+
+ (
+
+
+ )
+
+
+ ;
+
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
+
+
+
+
+ }
+
+
+
+
+
- }
+
+
+
+
+ }
+
+
+
+