-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
src/test/resources/org/htmlunit/cyberneko/testfiles/script/test-script-broken-close.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script>sc</scrip |
9 changes: 9 additions & 0 deletions
9
...resources/org/htmlunit/cyberneko/testfiles/script/test-script-broken-close.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"sc</scrip | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...est/resources/org/htmlunit/cyberneko/testfiles/script/test-script-closing-whitespace.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script>scRipt</script > |
9 changes: 9 additions & 0 deletions
9
...ces/org/htmlunit/cyberneko/testfiles/script/test-script-closing-whitespace.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"scRipt | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...t/resources/org/htmlunit/cyberneko/testfiles/script/test-script-comment-broken-close.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script><!--sc</scrip |
9 changes: 9 additions & 0 deletions
9
...s/org/htmlunit/cyberneko/testfiles/script/test-script-comment-broken-close.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"<!--sc</scrip | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
.../resources/org/htmlunit/cyberneko/testfiles/script/test-script-comment-closed-inside.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<body><script><!-- console.log('a'); --> console.log('b');</script>abc |
10 changes: 10 additions & 0 deletions
10
.../org/htmlunit/cyberneko/testfiles/script/test-script-comment-closed-inside.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(HTML | ||
(head | ||
)head | ||
(body | ||
(script | ||
"<!-- console.log('a'); --> console.log('b'); | ||
)script | ||
"abc | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...urces/org/htmlunit/cyberneko/testfiles/script/test-script-comment-closing-whitespace.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script><!-- scRipt</script > |
9 changes: 9 additions & 0 deletions
9
...htmlunit/cyberneko/testfiles/script/test-script-comment-closing-whitespace.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"<!-- scRipt | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
src/test/resources/org/htmlunit/cyberneko/testfiles/script/test-script-div-tag-in-code.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<body><script>console.log('<div>'); console.log('</div>');</script>abc |
10 changes: 10 additions & 0 deletions
10
...ources/org/htmlunit/cyberneko/testfiles/script/test-script-div-tag-in-code.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
(HTML | ||
(head | ||
)head | ||
(body | ||
(script | ||
"console.log('<div>'); console.log('</div>'); | ||
)script | ||
"abc | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...ces/org/htmlunit/cyberneko/testfiles/script/test-script-in-script-comment-broken-end.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script><!-- outer <scriptis strange</script> |
9 changes: 9 additions & 0 deletions
9
...mlunit/cyberneko/testfiles/script/test-script-in-script-comment-broken-end.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"<!-- outer <scriptis strange | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...test/resources/org/htmlunit/cyberneko/testfiles/script/test-script-in-script-comment.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<head><script><!-- outer <script >inner</script>OUTER</script> |
9 changes: 9 additions & 0 deletions
9
...rces/org/htmlunit/cyberneko/testfiles/script/test-script-in-script-comment.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
(HTML | ||
(head | ||
(script | ||
"<!-- outer <script >inner</script>OUTER</script> | ||
)script | ||
)head | ||
(body | ||
)body | ||
)HTML |
6 changes: 6 additions & 0 deletions
6
...esources/org/htmlunit/cyberneko/testfiles/strip-delims/test-strip-bang-comment-delim.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<script> | ||
<!-- on comment line | ||
html script content | ||
--!> | ||
</script> | ||
<h1>Foo</h1> |
13 changes: 13 additions & 0 deletions
13
...rg/htmlunit/cyberneko/testfiles/strip-delims/test-strip-bang-comment-delim.html.canonical
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(HTML | ||
(HEAD | ||
(script | ||
" on comment line\nhtml script content\n | ||
)script | ||
"\n | ||
)HEAD | ||
(BODY | ||
(h1 | ||
"Foo | ||
)h1 | ||
)BODY | ||
)HTML |
1 change: 1 addition & 0 deletions
1
...org/htmlunit/cyberneko/testfiles/strip-delims/test-strip-bang-comment-delim.html.settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
feature http://cyberneko.org/html/features/scanner/script/strip-comment-delims true |