From b214f38d2c24a890ce36512a0c8bab965e27a508 Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 23 Sep 2014 22:34:14 +0800 Subject: README --- Code/Blocks/syntax/tests/cases/001_basic.html | 42 ++++++++++ Code/Blocks/syntax/tests/cases/002_brushes.html | 50 +++++++++++ Code/Blocks/syntax/tests/cases/003_script_tag.html | 42 ++++++++++ .../Blocks/syntax/tests/cases/004_url_parsing.html | 43 ++++++++++ Code/Blocks/syntax/tests/cases/005_no_gutter.html | 33 ++++++++ .../syntax/tests/cases/006_pad_line_numbers.html | 39 +++++++++ Code/Blocks/syntax/tests/cases/007_collapse.html | 60 +++++++++++++ .../tests/cases/007_collapse_interaction.html | 44 ++++++++++ Code/Blocks/syntax/tests/cases/008_first_line.html | 29 +++++++ Code/Blocks/syntax/tests/cases/009_class_name.html | 32 +++++++ Code/Blocks/syntax/tests/cases/010_highlight.html | 70 ++++++++++++++++ Code/Blocks/syntax/tests/cases/011_smart_tabs.html | 98 ++++++++++++++++++++++ .../Blocks/syntax/tests/cases/012_server_side.html | 35 ++++++++ .../Blocks/syntax/tests/cases/013_html_script.html | 34 ++++++++ Code/Blocks/syntax/tests/cases/014_legacy.html | 70 ++++++++++++++++ 15 files changed, 721 insertions(+) create mode 100644 Code/Blocks/syntax/tests/cases/001_basic.html create mode 100644 Code/Blocks/syntax/tests/cases/002_brushes.html create mode 100644 Code/Blocks/syntax/tests/cases/003_script_tag.html create mode 100644 Code/Blocks/syntax/tests/cases/004_url_parsing.html create mode 100644 Code/Blocks/syntax/tests/cases/005_no_gutter.html create mode 100644 Code/Blocks/syntax/tests/cases/006_pad_line_numbers.html create mode 100644 Code/Blocks/syntax/tests/cases/007_collapse.html create mode 100644 Code/Blocks/syntax/tests/cases/007_collapse_interaction.html create mode 100644 Code/Blocks/syntax/tests/cases/008_first_line.html create mode 100644 Code/Blocks/syntax/tests/cases/009_class_name.html create mode 100644 Code/Blocks/syntax/tests/cases/010_highlight.html create mode 100644 Code/Blocks/syntax/tests/cases/011_smart_tabs.html create mode 100644 Code/Blocks/syntax/tests/cases/012_server_side.html create mode 100644 Code/Blocks/syntax/tests/cases/013_html_script.html create mode 100644 Code/Blocks/syntax/tests/cases/014_legacy.html (limited to 'Code/Blocks/syntax/tests/cases') diff --git a/Code/Blocks/syntax/tests/cases/001_basic.html b/Code/Blocks/syntax/tests/cases/001_basic.html new file mode 100644 index 0000000..1d57334 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/001_basic.html @@ -0,0 +1,42 @@ +
+	/**
+	 * multiline comment 
+	 */
+	
+	text
+	
+	// single line comment
+	
+	text
+	
+	"string" text 'string' text "string"
+	"string with \" escape" text 'string with \' escape' text "string with \" escape"
+	
+	var code = '\
+		function helloWorld()\
+		{\
+			// this is great!\
+			for(var i = 0; i <= 1; i++)\
+				alert("yay");\
+		}\
+		';
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/002_brushes.html b/Code/Blocks/syntax/tests/cases/002_brushes.html new file mode 100644 index 0000000..e9c64e2 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/002_brushes.html @@ -0,0 +1,50 @@ +
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
test
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/003_script_tag.html b/Code/Blocks/syntax/tests/cases/003_script_tag.html new file mode 100644 index 0000000..9b44292 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/003_script_tag.html @@ -0,0 +1,42 @@ +
+ +
+ + diff --git a/Code/Blocks/syntax/tests/cases/004_url_parsing.html b/Code/Blocks/syntax/tests/cases/004_url_parsing.html new file mode 100644 index 0000000..d489a66 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/004_url_parsing.html @@ -0,0 +1,43 @@ +
+/**
+ * Please see <http://www.alexgorbatchev.come/?test=1&y=2>
+ */
+var home = "http://www.alexgorbatchev.come/?test=1&y=2;test/1/2/3;";
+// < http://www.gnu.org/licenses/?test=1&y=2 >.
+
+// Test embedded URLs that terminate at a left angle bracket.
+// See bug #28: http://bitbucket.org/alexg/syntaxhighlighter/issue/28/
+"http://www.example.com/song2.mp3";
+
+ + \ No newline at end of file diff --git a/Code/Blocks/syntax/tests/cases/005_no_gutter.html b/Code/Blocks/syntax/tests/cases/005_no_gutter.html new file mode 100644 index 0000000..6e6b1be --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/005_no_gutter.html @@ -0,0 +1,33 @@ +
+			public Image getImage(URL url, String name) {
+				try {
+					/*
+					   Regular multiline comment.
+					*/
+				    return getImage(new URL(url, name));
+				} catch (MalformedURLException e) {
+				    return null;
+				}
+			}
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/006_pad_line_numbers.html b/Code/Blocks/syntax/tests/cases/006_pad_line_numbers.html new file mode 100644 index 0000000..8ebdd55 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/006_pad_line_numbers.html @@ -0,0 +1,39 @@ +
+/**
+ * Returns an Image object that can then be painted on the screen. 
+ * The url argument must specify an absolute {@link URL}. The name
+ * argument is a specifier that is relative to the url argument. 
+ *
+ * @param  url  an absolute URL giving the base location of the image
+ * @param  name the location of the image, relative to the url argument
+ * @return      the image at the specified URL
+ * @see         Image
+ */
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/007_collapse.html b/Code/Blocks/syntax/tests/cases/007_collapse.html new file mode 100644 index 0000000..2643bb5 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/007_collapse.html @@ -0,0 +1,60 @@ +
+	/**
+	 * Returns an Image object that can then be painted on the screen. 
+	 * The url argument must specify an absolute {@link URL}. The name
+	 * argument is a specifier that is relative to the url argument. 
+	 *
+	 * @param  url  an absolute URL giving the base location of the image
+	 * @param  name the location of the image, relative to the url argument
+	 * @return      the image at the specified URL
+	 * @see         Image
+	 */
+
+ +
+	/**
+	 * Returns an Image object that can then be painted on the screen. 
+	 * The url argument must specify an absolute {@link URL}. The name
+	 * argument is a specifier that is relative to the url argument. 
+	 *
+	 * @param  url  an absolute URL giving the base location of the image
+	 * @param  name the location of the image, relative to the url argument
+	 * @return      the image at the specified URL
+	 * @see         Image
+	 */
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/007_collapse_interaction.html b/Code/Blocks/syntax/tests/cases/007_collapse_interaction.html new file mode 100644 index 0000000..ea72046 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/007_collapse_interaction.html @@ -0,0 +1,44 @@ + diff --git a/Code/Blocks/syntax/tests/cases/008_first_line.html b/Code/Blocks/syntax/tests/cases/008_first_line.html new file mode 100644 index 0000000..169dc38 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/008_first_line.html @@ -0,0 +1,29 @@ +
+	partial class Foo
+	{
+		function test()
+		{
+			yield return;
+		}
+	}
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/009_class_name.html b/Code/Blocks/syntax/tests/cases/009_class_name.html new file mode 100644 index 0000000..f2437d5 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/009_class_name.html @@ -0,0 +1,32 @@ +
+	public Image getImage(URL url, String name) {
+		try {
+			/*
+			   Regular multiline comment.
+			*/
+		    return getImage(new URL(url, name));
+		} catch (MalformedURLException e) {
+		    return null;
+		}
+	}
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/010_highlight.html b/Code/Blocks/syntax/tests/cases/010_highlight.html new file mode 100644 index 0000000..64b6613 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/010_highlight.html @@ -0,0 +1,70 @@ +
+	public function validateStrongPassword(password:String):Boolean
+	{
+		if (password == null || password.length <= 0)
+		{
+			return false;
+		}
+		
+		return STRONG_PASSWORD_PATTERN.test(password);
+	}
+
+ + + diff --git a/Code/Blocks/syntax/tests/cases/011_smart_tabs.html b/Code/Blocks/syntax/tests/cases/011_smart_tabs.html new file mode 100644 index 0000000..d6d62fc --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/011_smart_tabs.html @@ -0,0 +1,98 @@ +
+	the		words	in		this	paragraph
+	should	look	like	they	are
+	evenly	spaced	between	columns
+
+ +
+	the	words	in	this	paragraph
+	should	look	like	they	are
+	evenly	spaced	between	columns
+
+ +
+	the		words	in		this	paragraph
+	should	look	out		of		whack
+	because	smart	tabs	are		disabled
+
+ + diff --git a/Code/Blocks/syntax/tests/cases/012_server_side.html b/Code/Blocks/syntax/tests/cases/012_server_side.html new file mode 100644 index 0000000..1bb4217 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/012_server_side.html @@ -0,0 +1,35 @@ + + +
+
+ + \ No newline at end of file diff --git a/Code/Blocks/syntax/tests/cases/013_html_script.html b/Code/Blocks/syntax/tests/cases/013_html_script.html new file mode 100644 index 0000000..c0a1201 --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/013_html_script.html @@ -0,0 +1,34 @@ +
+<hello>
+	<%
+		package free.cafekiwi.gotapi;
+	%>
+</hello>
+
+
+<%= print(); %>
+
+ + \ No newline at end of file diff --git a/Code/Blocks/syntax/tests/cases/014_legacy.html b/Code/Blocks/syntax/tests/cases/014_legacy.html new file mode 100644 index 0000000..eb4343e --- /dev/null +++ b/Code/Blocks/syntax/tests/cases/014_legacy.html @@ -0,0 +1,70 @@ +
basic check
+
no toolbar
+
no gutter
+
collapsed
+
first line
+ + -- cgit v1.2.3