Skip to content

Commit c5f7108

Browse files
committed
add requirejs html tests again
1 parent c3823a2 commit c5f7108

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Plotly.NET.Tests/HtmlCodegen/SimpleTests.fs

+8
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ let ``Html layout tests`` =
3131
"""var layout = {"title":{"text":"Hello world!"},"xaxis":{"title":{"text":"xAxis"},"showgrid":false},"yaxis":{"title":{"text":"yAxis"},"showgrid":false}};"""
3232
|> chartGeneratedContains simpleChart
3333
);
34+
testCase "Expecting cloudflare link" (fun () ->
35+
"""https://cdnjs.cloudflare.com/ajax/libs/require.js"""
36+
|> chartGeneratedContains simpleChart
37+
);
38+
testCase "Expecting require config" (fun () ->
39+
(sprintf """var fsharpPlotlyRequire = requirejs.config({context:'fsharp-plotly',paths:{plotly:'https://cdn.plot.ly/plotly-%s.min'}}) || require;""" Globals.PLOTLYJS_VERSION)
40+
|> chartGeneratedContains simpleChart
41+
);
3442
testCase "Expecting html tags in embedded page only" (fun () ->
3543
["<html>"; "</html>"; "<head>"; "</head>"; "<body>"; "</body>"; "<script type=\"text/javascript\">"; "</script>"]
3644
|> substringListIsInChart simpleChart toEmbeddedHTML

0 commit comments

Comments
 (0)