Skip to content

Commit d4b3eef

Browse files
committed
ScintillaOrg#338 Add tests.
1 parent 9a24b69 commit d4b3eef

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<script type="text/javascript">
2+
// test new state from default
3+
var/**/b=1/***/;
4+
/1//**/;
5+
/1//***/;
6+
''""/**/
7+
""''/***/
8+
``''``/**/
9+
``""``/***/
10+
// <!-- and -->
11+
''<!--
12+
""-->
13+
``<!--
14+
``-->
15+
;-->
16+
1-->
17+
</script>
18+
<script type="text/vbscript">
19+
' test new state from default
20+
dim a=1;''
21+
""''
22+
1''
23+
' <!-- and -->
24+
""<!--
25+
;<!--
26+
</script>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2 400 0 + <script type="text/javascript">
2+
0 401 0 | // test new state from default
3+
0 401 0 | var/**/b=1/***/;
4+
0 401 0 | /1//**/;
5+
0 401 0 | /1//***/;
6+
0 401 0 | ''""/**/
7+
0 401 0 | ""''/***/
8+
0 401 0 | ``''``/**/
9+
0 401 0 | ``""``/***/
10+
0 401 0 | // <!-- and -->
11+
0 401 0 | ''<!--
12+
0 401 0 | ""-->
13+
0 401 0 | ``<!--
14+
0 401 0 | ``-->
15+
0 401 0 | ;-->
16+
0 401 0 | 1-->
17+
0 401 0 | </script>
18+
2 400 0 + <script type="text/vbscript">
19+
0 401 0 | ' test new state from default
20+
0 401 0 | dim a=1;''
21+
0 401 0 | ""''
22+
0 401 0 | 1''
23+
0 401 0 | ' <!-- and -->
24+
0 401 0 | ""<!--
25+
0 401 0 | ;<!--
26+
0 401 0 | </script>
27+
0 400 0
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{1}<script{8} {3}type{8}={6}"text/javascript"{1}>{40}
2+
{43}// test new state from default{41}
3+
{47}var{44}/**/{46}b{50}={45}1{44}/***/{50};{41}
4+
{52}/1/{44}/**/{50};{41}
5+
{52}/1/{44}/***/{50};{41}
6+
{49}''{48}""{44}/**/{41}
7+
{48}""{49}''{44}/***/{41}
8+
{53}``{49}''{53}``{44}/**/{41}
9+
{53}``{48}""{53}``{44}/***/{41}
10+
{43}// <!-- and -->{41}
11+
{49}''{43}<!--{41}
12+
{48}""{43}-->{41}
13+
{53}``{43}<!--{41}
14+
{53}``{43}-->{41}
15+
{50};{43}-->{41}
16+
{45}1{43}-->{41}
17+
{1}</script>{0}
18+
{1}<script{8} {3}type{8}={6}"text/vbscript"{1}>{70}
19+
{72}' test new state from default{71}
20+
{74}dim{71} {76}a{71}={73}1{71};{72}''{71}
21+
{75}""{72}''{71}
22+
{73}1{72}''{71}
23+
{72}' <!-- and -->{71}
24+
{75}""{72}<!--{71}
25+
;{72}<!--{71}
26+
{1}</script>{0}

0 commit comments

Comments
 (0)