diff options
author | nyamatongwe <unknown> | 2009-05-12 23:39:51 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-05-12 23:39:51 +0000 |
commit | 77e5724a36c60f1f8318cd68cf1551a7892bfae7 (patch) | |
tree | a554b9ac64e53a35379ae6e6a7d3160ac293a4de /test/examples | |
parent | d423d335288c9420c684d4123497b2ece9fbfbe0 (diff) | |
download | scintilla-mirror-77e5724a36c60f1f8318cd68cf1551a7892bfae7.tar.gz |
Include tests in standard repository.
Diffstat (limited to 'test/examples')
-rw-r--r-- | test/examples/x.asp | 12 | ||||
-rw-r--r-- | test/examples/x.asp.styled | 12 | ||||
-rw-r--r-- | test/examples/x.cxx | 4 | ||||
-rw-r--r-- | test/examples/x.cxx.styled | 4 | ||||
-rw-r--r-- | test/examples/x.html | 7 | ||||
-rw-r--r-- | test/examples/x.html.styled | 7 | ||||
-rw-r--r-- | test/examples/x.php | 6 | ||||
-rw-r--r-- | test/examples/x.php.styled | 6 | ||||
-rw-r--r-- | test/examples/x.py | 11 | ||||
-rw-r--r-- | test/examples/x.py.styled | 11 | ||||
-rw-r--r-- | test/examples/x.vb | 9 | ||||
-rw-r--r-- | test/examples/x.vb.styled | 9 |
12 files changed, 98 insertions, 0 deletions
diff --git a/test/examples/x.asp b/test/examples/x.asp new file mode 100644 index 000000000..a78acdc34 --- /dev/null +++ b/test/examples/x.asp @@ -0,0 +1,12 @@ +<%@language=javas%> +<% +#include +function x() { +} +%> +<%@language=vbscript%> +<% +sub x 'comment +%> +<head> +<body></body> diff --git a/test/examples/x.asp.styled b/test/examples/x.asp.styled new file mode 100644 index 000000000..920c6380d --- /dev/null +++ b/test/examples/x.asp.styled @@ -0,0 +1,12 @@ +{15}<%@{16}language=javas{15}%>{0} +{15}<%{56} +#{61}include{56} +{62}function{56} {61}x{65}(){56} {65}{{56} +{65}}{56} +{15}%>{0} +{15}<%@{16}language=vbscript{15}%>{0} +{15}<%{81} +{84}sub{81} {86}x{81} {82}'comment {81} +{15}%>{0} +{1}<head>{0} +{1}<body></body>{0} diff --git a/test/examples/x.cxx b/test/examples/x.cxx new file mode 100644 index 000000000..255a70e7c --- /dev/null +++ b/test/examples/x.cxx @@ -0,0 +1,4 @@ +// A demonstration program +int main() { + printf("hello world %d\n", 9); +} diff --git a/test/examples/x.cxx.styled b/test/examples/x.cxx.styled new file mode 100644 index 000000000..223ee0760 --- /dev/null +++ b/test/examples/x.cxx.styled @@ -0,0 +1,4 @@ +{2}// A demonstration program +{5}int{0} {11}main{10}(){0} {10}{{0} + {11}printf{10}({6}"hello world %d\n"{10},{0} {4}9{10});{0} +{10}}{0} diff --git a/test/examples/x.html b/test/examples/x.html new file mode 100644 index 000000000..1d325dc76 --- /dev/null +++ b/test/examples/x.html @@ -0,0 +1,7 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta name="Date.Modified" content="20010515" /> + <title>SinkWorld - Portability</title> + <unknown>SinkWorld - Portability</unknown> + <link rel="stylesheet" type="text/css" href="SW.css"> +</head> diff --git a/test/examples/x.html.styled b/test/examples/x.html.styled new file mode 100644 index 000000000..3bcb7bca1 --- /dev/null +++ b/test/examples/x.html.styled @@ -0,0 +1,7 @@ +{1}<html{8} {3}xmlns{8}={6}"http://www.w3.org/1999/xhtml"{1}>{0} +{1}<head>{0} + {1}<meta{8} {3}name{8}={6}"Date.Modified"{8} {3}content{8}={6}"20010515"{8} {11}/>{0} + {1}<title>{0}SinkWorld - Portability{1}</title>{0} + {2}<unknown>{0}SinkWorld - Portability{2}</unknown>{0} + {1}<link{8} {3}rel{8}={6}"stylesheet"{8} {3}type{8}={6}"text/css"{8} {3}href{8}={6}"SW.css"{1}>{0} +{1}</head>{0} diff --git a/test/examples/x.php b/test/examples/x.php new file mode 100644 index 000000000..bc7302d85 --- /dev/null +++ b/test/examples/x.php @@ -0,0 +1,6 @@ +<head> <!-- About to script --> +<?php +echo "<!-- -->\n"; +/* ?> */ +?> +<strong>for</strong><b>if</b> diff --git a/test/examples/x.php.styled b/test/examples/x.php.styled new file mode 100644 index 000000000..fb90ba06e --- /dev/null +++ b/test/examples/x.php.styled @@ -0,0 +1,6 @@ +{1}<head>{0} {9}<!-- About to script -->{0} +{18}<?php{118} +echo {119}"<!-- -->\n"{127};{118} +{124}/* ?> */{118} +{18}?>{0} +{1}<strong>{0}for{1}</strong><b>{0}if{1}</b>{0} diff --git a/test/examples/x.py b/test/examples/x.py new file mode 100644 index 000000000..12c4b71df --- /dev/null +++ b/test/examples/x.py @@ -0,0 +1,11 @@ +# Convert all punctuation characters except '_', '*', and '.' into spaces. +def depunctuate(s): + '''A docstring''' + """Docstring 2""" + d = "" + for ch in s: + if ch in 'abcde': + d = d + ch + else: + d = d + " " + return d diff --git a/test/examples/x.py.styled b/test/examples/x.py.styled new file mode 100644 index 000000000..02f94a923 --- /dev/null +++ b/test/examples/x.py.styled @@ -0,0 +1,11 @@ +{1}# Convert all punctuation characters except '_', '*', and '.' into spaces.{0} +{5}def{0} {9}depunctuate{10}({11}s{10}):{0} + {6}'''A docstring'''{0} + {7}"""Docstring 2"""{0} + {11}d{0} {10}={0} {3}""{0} + {5}for{0} {11}ch{0} {5}in{0} {11}s{10}:{0} + {5}if{0} {11}ch{0} {5}in{0} {4}'abcde'{10}:{0} + {11}d{0} {10}={0} {11}d{0} {10}+{0} {11}ch{0} + {5}else{10}:{0} + {11}d{0} {10}={0} {11}d{0} {10}+{0} {3}" "{0} + {5}return{0} {11}d{0} diff --git a/test/examples/x.vb b/test/examples/x.vb new file mode 100644 index 000000000..a4503704b --- /dev/null +++ b/test/examples/x.vb @@ -0,0 +1,9 @@ +' String" +Dim a As String = "hello, world" +Dim b As String = "hello world" +Dim c As String = "Joe said ""Hello"" to me" +Dim d As String = "\\\\server\\share\\file.txt" +' Character +""C "c"C "cc"C +' Date +d = #5/31/1993# or # 01/01/0001 12:00:00AM # diff --git a/test/examples/x.vb.styled b/test/examples/x.vb.styled new file mode 100644 index 000000000..e0c86f918 --- /dev/null +++ b/test/examples/x.vb.styled @@ -0,0 +1,9 @@ +{1}' String" +{3}Dim{0} {7}a{0} {3}As{0} {3}String{0} {6}={0} {4}"hello, world"{0} +{3}Dim{0} {7}b{0} {3}As{0} {3}String{0} {6}={0} {4}"hello world"{0} +{3}Dim{0} {7}c{0} {3}As{0} {3}String{0} {6}={0} {4}"Joe said ""Hello"" to me"{0} +{3}Dim{0} {7}d{0} {3}As{0} {3}String{0} {6}={0} {4}"\\\\server\\share\\file.txt"{0} +{1}' Character +{4}""C{0} {4}"c"C{0} {4}"cc"C{0} +{1}' Date +{7}d{0} {6}={0} {8}#5/31/1993#{0} {3}or{0} {8}# 01/01/0001 12:00:00AM #{0} |