errors) {
- StringBuffer json = new StringBuffer();
- json.append('[');
- for (int i = 0; i < errors.size(); i++) {
-
- AjaxValidationFormResponse err = errors.get(i);
- json.append(err.toString());
- if (i < errors.size() - 1) {
- json.append(',');
- }
- }
- json.append(']');
- return json.toString();
- }
-
- /**
- * Sleeps the current thread for the given delay
- *
- * @param duration
- * in milliseconds
- * */
- private void sleep(long duration) {
- try {
- Thread.sleep(duration);
- } catch (InterruptedException e) {
-
- e.printStackTrace();
- }
- }
-
- /**
- * Application start point, starts the httpd server
- *
- * @param args
- * command line arguments
- */
- public static void main(String[] args) {
- try {
- new AjaxTestServer();
- } catch (IOException ioe) {
- System.err.println("Couldn't start server:\n" + ioe);
- System.exit(-1);
- }
- System.out.println("Listening on port " + PORT + ". Hit Enter to stop.\nPlease open your browsers to http://localhost:"
- + PORT);
- try {
- System.in.read();
- } catch (Throwable t) {
- }
- }
-}
\ No newline at end of file
diff --git a/test/NanoHTTPD$HTTPSession.class b/test/NanoHTTPD$HTTPSession.class
deleted file mode 100644
index 2690dcc..0000000
Binary files a/test/NanoHTTPD$HTTPSession.class and /dev/null differ
diff --git a/test/NanoHTTPD$Response.class b/test/NanoHTTPD$Response.class
deleted file mode 100644
index c538286..0000000
Binary files a/test/NanoHTTPD$Response.class and /dev/null differ
diff --git a/test/NanoHTTPD.class b/test/NanoHTTPD.class
deleted file mode 100644
index b3facf6..0000000
Binary files a/test/NanoHTTPD.class and /dev/null differ
diff --git a/test/NanoHTTPD.java b/test/NanoHTTPD.java
deleted file mode 100644
index 9e02e5d..0000000
--- a/test/NanoHTTPD.java
+++ /dev/null
@@ -1,759 +0,0 @@
-import java.io.BufferedReader;
-import java.io.ByteArrayInputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.OutputStream;
-import java.io.PrintWriter;
-import java.net.ServerSocket;
-import java.net.Socket;
-import java.net.URLEncoder;
-import java.util.Date;
-import java.util.Enumeration;
-import java.util.Hashtable;
-import java.util.Locale;
-import java.util.Properties;
-import java.util.StringTokenizer;
-import java.util.TimeZone;
-
-/**
- * A simple, tiny, nicely embeddable HTTP 1.0 server in Java
- *
- * NanoHTTPD version 1.14,
- * Copyright © 2001,2005-2010 Jarno Elonen (elonen@iki.fi, http://iki.fi/elonen/)
- *
- *
Features + limitations:
- *
- * Only one Java file
- * Java 1.1 compatible
- * Released as open source, Modified BSD licence
- * No fixed config files, logging, authorization etc. (Implement yourself if you need them.)
- * Supports parameter parsing of GET and POST methods
- * Supports both dynamic content and file serving
- * Never caches anything
- * Doesn't limit bandwidth, request time or simultaneous connections
- * Default code serves files and shows all HTTP parameters and headers
- * File server supports directory listing, index.html and index.htm
- * File server does the 301 redirection trick for directories without '/'
- * File server supports simple skipping for files (continue download)
- * File server uses current directory as a web root
- * File server serves also very long files without memory overhead
- * Contains a built-in list of most common mime types
- * All header names are converted lowercase so they don't vary between browsers/clients
- *
- *
- *
- * Ways to use:
- *
- * Run as a standalone app, serves files from current directory and shows requests
- * Subclass serve() and embed to your own program
- * Call serveFile() from serve() with your own base directory
- *
- *
- *
- * See the end of the source file for distribution license
- * (Modified BSD licence)
- */
-public class NanoHTTPD
-{
- // ==================================================
- // API parts
- // ==================================================
-
- /**
- * Override this to customize the server.
- *
- * (By default, this delegates to serveFile() and allows directory listing.)
- *
- * @parm uri Percent-decoded URI without parameters, for example "/index.cgi"
- * @parm method "GET", "POST" etc.
- * @parm parms Parsed, percent decoded parameters from URI and, in case of POST, data.
- * @parm header Header entries, percent decoded
- * @return HTTP response, see class Response for details
- */
- public Response serve( String uri, String method, Properties header, Properties parms )
- {
- System.out.println( method + " '" + uri + "' " );
-
- Enumeration e = header.propertyNames();
- while ( e.hasMoreElements())
- {
- String value = (String)e.nextElement();
- // orefalo: way to much logging
- // System.out.println( " HDR: '" + value + "' = '" +
- // header.getProperty( value ) + "'" );
- }
- e = parms.propertyNames();
- while ( e.hasMoreElements())
- {
- String value = (String)e.nextElement();
- System.out.println( " PRM: '" + value + "' = '" +
- parms.getProperty( value ) + "'" );
- }
-
- return serveFile( uri, header, new File("."), true );
- }
-
- /**
- * HTTP response.
- * Return one of these from serve().
- */
- public class Response
- {
- /**
- * Default constructor: response = HTTP_OK, data = mime = 'null'
- */
- public Response()
- {
- this.status = HTTP_OK;
- }
-
- /**
- * Basic constructor.
- */
- public Response( String status, String mimeType, InputStream data )
- {
- this.status = status;
- this.mimeType = mimeType;
- this.data = data;
- }
-
- /**
- * Convenience method that makes an InputStream out of
- * given text.
- */
- public Response( String status, String mimeType, String txt )
- {
- this.status = status;
- this.mimeType = mimeType;
- this.data = new ByteArrayInputStream( txt.getBytes());
- }
-
- /**
- * Adds given line to the header.
- */
- public void addHeader( String name, String value )
- {
- header.put( name, value );
- }
-
- /**
- * HTTP status code after processing, e.g. "200 OK", HTTP_OK
- */
- public String status;
-
- /**
- * MIME type of content, e.g. "text/html"
- */
- public String mimeType;
-
- /**
- * Data of the response, may be null.
- */
- public InputStream data;
-
- /**
- * Headers for the HTTP response. Use addHeader()
- * to add lines.
- */
- public Properties header = new Properties();
- }
-
- /**
- * Some HTTP response status codes
- */
- public static final String
- HTTP_OK = "200 OK",
- HTTP_REDIRECT = "301 Moved Permanently",
- HTTP_FORBIDDEN = "403 Forbidden",
- HTTP_NOTFOUND = "404 Not Found",
- HTTP_BADREQUEST = "400 Bad Request",
- HTTP_INTERNALERROR = "500 Internal Server Error",
- HTTP_NOTIMPLEMENTED = "501 Not Implemented";
-
- /**
- * Common mime types for dynamic content
- */
- public static final String
- MIME_PLAINTEXT = "text/plain",
- MIME_HTML = "text/html",
- MIME_DEFAULT_BINARY = "application/octet-stream";
-
- // ==================================================
- // Socket & server code
- // ==================================================
-
- /**
- * Starts a HTTP server to given port.
- * Throws an IOException if the socket is already in use
- */
- public NanoHTTPD( int port ) throws IOException
- {
- myTcpPort = port;
- myServerSocket = new ServerSocket( myTcpPort );
- myThread = new Thread( new Runnable()
- {
- public void run()
- {
- try
- {
- while( true )
- new HTTPSession( myServerSocket.accept());
- }
- catch ( IOException ioe )
- {}
- }
- });
- myThread.setDaemon( true );
- myThread.start();
- }
-
- /**
- * Stops the server.
- */
- public void stop()
- {
- try
- {
- myServerSocket.close();
- myThread.join();
- }
- catch ( IOException ioe ) {}
- catch ( InterruptedException e ) {}
- }
-
-
- /**
- * Starts as a standalone file server and waits for Enter.
- */
- public static void main( String[] args )
- {
- System.out.println( "NanoHTTPD 1.14 (C) 2001,2005-2010 Jarno Elonen\n" +
- "(Command line options: [port] [--licence])\n" );
-
- // Show licence if requested
- int lopt = -1;
- for ( int i=0; i 0 && lopt != 0 )
- port = Integer.parseInt( args[0] );
-
- if ( args.length > 1 &&
- args[1].toLowerCase().endsWith( "licence" ))
- System.out.println( LICENCE + "\n" );
-
- NanoHTTPD nh = null;
- try
- {
- nh = new NanoHTTPD( port );
- }
- catch( IOException ioe )
- {
- System.err.println( "Couldn't start server:\n" + ioe );
- System.exit( -1 );
- }
- nh.myFileDir = new File("");
-
- System.out.println( "Now serving files in port " + port + " from \"" +
- new File("").getAbsolutePath() + "\"" );
- System.out.println( "Hit Enter to stop.\n" );
-
- try { System.in.read(); } catch( Throwable t ) {};
- }
-
- /**
- * Handles one session, i.e. parses the HTTP request
- * and returns the response.
- */
- private class HTTPSession implements Runnable
- {
- public HTTPSession( Socket s )
- {
- mySocket = s;
- Thread t = new Thread( this );
- t.setDaemon( true );
- t.start();
- }
-
- public void run()
- {
- try
- {
- InputStream is = mySocket.getInputStream();
- if ( is == null) return;
- BufferedReader in = new BufferedReader( new InputStreamReader( is ));
-
- // Read the request line
- String inLine = in.readLine();
- if (inLine == null) return;
- StringTokenizer st = new StringTokenizer( inLine );
- if ( !st.hasMoreTokens())
- sendError( HTTP_BADREQUEST, "BAD REQUEST: Syntax error. Usage: GET /example/file.html" );
-
- String method = st.nextToken();
-
- if ( !st.hasMoreTokens())
- sendError( HTTP_BADREQUEST, "BAD REQUEST: Missing URI. Usage: GET /example/file.html" );
-
- String uri = st.nextToken();
-
- // Decode parameters from the URI
- Properties parms = new Properties();
- int qmi = uri.indexOf( '?' );
- if ( qmi >= 0 )
- {
- decodeParms( uri.substring( qmi+1 ), parms );
- uri = decodePercent( uri.substring( 0, qmi ));
- }
- else uri = decodePercent(uri);
-
-
- // If there's another token, it's protocol version,
- // followed by HTTP headers. Ignore version but parse headers.
- // NOTE: this now forces header names uppercase since they are
- // case insensitive and vary by client.
- Properties header = new Properties();
- if ( st.hasMoreTokens())
- {
- String line = in.readLine();
- while ( line.trim().length() > 0 )
- {
- int p = line.indexOf( ':' );
- header.put( line.substring(0,p).trim().toLowerCase(), line.substring(p+1).trim());
- line = in.readLine();
- }
- }
-
- // If the method is POST, there may be parameters
- // in data section, too, read it:
- if ( method.equalsIgnoreCase( "POST" ))
- {
- long size = 0x7FFFFFFFFFFFFFFFl;
- String contentLength = header.getProperty("content-length");
- if (contentLength != null)
- {
- try { size = Integer.parseInt(contentLength); }
- catch (NumberFormatException ex) {}
- }
- String postLine = "";
- char buf[] = new char[512];
- int read = in.read(buf);
- while ( read >= 0 && size > 0 && !postLine.endsWith("\r\n") )
- {
- size -= read;
- postLine += String.valueOf(buf, 0, read);
- if ( size > 0 )
- read = in.read(buf);
- }
- postLine = postLine.trim();
- decodeParms( postLine, parms );
- }
-
- // Ok, now do the serve()
- Response r = serve( uri, method, header, parms );
- if ( r == null )
- sendError( HTTP_INTERNALERROR, "SERVER INTERNAL ERROR: Serve() returned a null response." );
- else
- sendResponse( r.status, r.mimeType, r.header, r.data );
-
- in.close();
- }
- catch ( IOException ioe )
- {
- try
- {
- sendError( HTTP_INTERNALERROR, "SERVER INTERNAL ERROR: IOException: " + ioe.getMessage());
- }
- catch ( Throwable t ) {}
- }
- catch ( InterruptedException ie )
- {
- // Thrown by sendError, ignore and exit the thread.
- }
- }
-
- /**
- * Decodes the percent encoding scheme.
- * For example: "an+example%20string" -> "an example string"
- */
- private String decodePercent( String str ) throws InterruptedException
- {
- try
- {
- StringBuffer sb = new StringBuffer();
- for( int i=0; i= 0 )
- p.put( decodePercent( e.substring( 0, sep )).trim(),
- decodePercent( e.substring( sep+1 )));
- }
- }
-
- /**
- * Returns an error message as a HTTP response and
- * throws InterruptedException to stop furhter request processing.
- */
- private void sendError( String status, String msg ) throws InterruptedException
- {
- sendResponse( status, MIME_PLAINTEXT, null, new ByteArrayInputStream( msg.getBytes()));
- throw new InterruptedException();
- }
-
- /**
- * Sends given response to the socket.
- */
- private void sendResponse( String status, String mime, Properties header, InputStream data )
- {
- try
- {
- if ( status == null )
- throw new Error( "sendResponse(): Status can't be null." );
-
- OutputStream out = mySocket.getOutputStream();
- PrintWriter pw = new PrintWriter( out );
- pw.print("HTTP/1.0 " + status + " \r\n");
-
- if ( mime != null )
- pw.print("Content-Type: " + mime + "\r\n");
-
- if ( header == null || header.getProperty( "Date" ) == null )
- pw.print( "Date: " + gmtFrmt.format( new Date()) + "\r\n");
-
- if ( header != null )
- {
- Enumeration e = header.keys();
- while ( e.hasMoreElements())
- {
- String key = (String)e.nextElement();
- String value = header.getProperty( key );
- pw.print( key + ": " + value + "\r\n");
- }
- }
-
- pw.print("\r\n");
- pw.flush();
-
- if ( data != null )
- {
- byte[] buff = new byte[2048];
- while (true)
- {
- int read = data.read( buff, 0, 2048 );
- if (read <= 0)
- break;
- out.write( buff, 0, read );
- }
- }
- out.flush();
- out.close();
- if ( data != null )
- data.close();
- }
- catch( IOException ioe )
- {
- // Couldn't write? No can do.
- try { mySocket.close(); } catch( Throwable t ) {}
- }
- }
-
- private Socket mySocket;
- };
-
- /**
- * URL-encodes everything between "/"-characters.
- * Encodes spaces as '%20' instead of '+'.
- */
- private String encodeUri( String uri )
- {
- String newUri = "";
- StringTokenizer st = new StringTokenizer( uri, "/ ", true );
- while ( st.hasMoreTokens())
- {
- String tok = st.nextToken();
- if ( tok.equals( "/" ))
- newUri += "/";
- else if ( tok.equals( " " ))
- newUri += "%20";
- else
- {
- newUri += URLEncoder.encode( tok );
- // For Java 1.4 you'll want to use this instead:
- // try { newUri += URLEncoder.encode( tok, "UTF-8" ); } catch ( UnsupportedEncodingException uee )
- }
- }
- return newUri;
- }
-
- private int myTcpPort;
- private final ServerSocket myServerSocket;
- private Thread myThread;
-
- File myFileDir;
-
- // ==================================================
- // File server code
- // ==================================================
-
- /**
- * Serves file from homeDir and its' subdirectories (only).
- * Uses only URI, ignores all headers and HTTP parameters.
- */
- public Response serveFile( String uri, Properties header, File homeDir,
- boolean allowDirectoryListing )
- {
- // Make sure we won't die of an exception later
- if ( !homeDir.isDirectory())
- return new Response( HTTP_INTERNALERROR, MIME_PLAINTEXT,
- "INTERNAL ERRROR: serveFile(): given homeDir is not a directory." );
-
- // Remove URL arguments
- uri = uri.trim().replace( File.separatorChar, '/' );
- if ( uri.indexOf( '?' ) >= 0 )
- uri = uri.substring(0, uri.indexOf( '?' ));
-
- // Prohibit getting out of current directory
- if ( uri.startsWith( ".." ) || uri.endsWith( ".." ) || uri.indexOf( "../" ) >= 0 )
- return new Response( HTTP_FORBIDDEN, MIME_PLAINTEXT,
- "FORBIDDEN: Won't serve ../ for security reasons." );
-
- File f = new File( homeDir, uri );
- if ( !f.exists())
- return new Response( HTTP_NOTFOUND, MIME_PLAINTEXT,
- "Error 404, file not found." );
-
- // List the directory, if necessary
- if ( f.isDirectory())
- {
- // Browsers get confused without '/' after the
- // directory, send a redirect.
- if ( !uri.endsWith( "/" ))
- {
- uri += "/";
- Response r = new Response( HTTP_REDIRECT, MIME_HTML,
- "Redirected: " +
- uri + " ");
- r.addHeader( "Location", uri );
- return r;
- }
-
- // First try index.html and index.htm
- if ( new File( f, "index.html" ).exists())
- f = new File( homeDir, uri + "/index.html" );
- else if ( new File( f, "index.htm" ).exists())
- f = new File( homeDir, uri + "/index.htm" );
-
- // No index file, list the directory
- else if ( allowDirectoryListing )
- {
- String[] files = f.list();
- String msg = "Directory " + uri + " ";
-
- if ( uri.length() > 1 )
- {
- String u = uri.substring( 0, uri.length()-1 );
- int slash = u.lastIndexOf( '/' );
- if ( slash >= 0 && slash < u.length())
- msg += ".. ";
- }
-
- for ( int i=0; i";
- files[i] += "/";
- }
-
- msg += "" +
- files[i] + " ";
-
- // Show file size
- if ( curFile.isFile())
- {
- long len = curFile.length();
- msg += " (";
- if ( len < 1024 )
- msg += curFile.length() + " bytes";
- else if ( len < 1024 * 1024 )
- msg += curFile.length()/1024 + "." + (curFile.length()%1024/10%100) + " KB";
- else
- msg += curFile.length()/(1024*1024) + "." + curFile.length()%(1024*1024)/10%100 + " MB";
-
- msg += ") ";
- }
- msg += " ";
- if ( dir ) msg += "";
- }
- return new Response( HTTP_OK, MIME_HTML, msg );
- }
- else
- {
- return new Response( HTTP_FORBIDDEN, MIME_PLAINTEXT,
- "FORBIDDEN: No directory listing." );
- }
- }
-
- try
- {
- // Get MIME type from file name extension, if possible
- String mime = null;
- int dot = f.getCanonicalPath().lastIndexOf( '.' );
- if ( dot >= 0 )
- mime = (String)theMimeTypes.get( f.getCanonicalPath().substring( dot + 1 ).toLowerCase());
- if ( mime == null )
- mime = MIME_DEFAULT_BINARY;
-
- // Support (simple) skipping:
- long startFrom = 0;
- String range = header.getProperty( "range" );
- if ( range != null )
- {
- if ( range.startsWith( "bytes=" ))
- {
- range = range.substring( "bytes=".length());
- int minus = range.indexOf( '-' );
- if ( minus > 0 )
- range = range.substring( 0, minus );
- try {
- startFrom = Long.parseLong( range );
- }
- catch ( NumberFormatException nfe ) {}
- }
- }
-
- FileInputStream fis = new FileInputStream( f );
- fis.skip( startFrom );
- Response r = new Response( HTTP_OK, mime, fis );
- r.addHeader( "Content-length", "" + (f.length() - startFrom));
- r.addHeader( "Content-range", "" + startFrom + "-" +
- (f.length()-1) + "/" + f.length());
- return r;
- }
- catch( IOException ioe )
- {
- return new Response( HTTP_FORBIDDEN, MIME_PLAINTEXT, "FORBIDDEN: Reading file failed." );
- }
- }
-
- /**
- * Hashtable mapping (String)FILENAME_EXTENSION -> (String)MIME_TYPE
- */
- private static Hashtable theMimeTypes = new Hashtable();
- static
- {
- StringTokenizer st = new StringTokenizer(
- "htm text/html "+
- "html text/html "+
- //orefalo: added css and js mime types
- "css text/css "+
- "js application/javascript "+
- "txt text/plain "+
- "asc text/plain "+
- "gif image/gif "+
- "jpg image/jpeg "+
- "jpeg image/jpeg "+
- "png image/png "+
- "mp3 audio/mpeg "+
- "m3u audio/mpeg-url " +
- "pdf application/pdf "+
- "doc application/msword "+
- "ogg application/x-ogg "+
- "zip application/octet-stream "+
- "exe application/octet-stream "+
- "class application/octet-stream " );
- while ( st.hasMoreTokens())
- theMimeTypes.put( st.nextToken(), st.nextToken());
- }
-
- /**
- * GMT date formatter
- */
- private static java.text.SimpleDateFormat gmtFrmt;
- static
- {
- gmtFrmt = new java.text.SimpleDateFormat( "E, d MMM yyyy HH:mm:ss 'GMT'", Locale.US);
- gmtFrmt.setTimeZone(TimeZone.getTimeZone("GMT"));
- }
-
- /**
- * The distribution licence
- */
- private static final String LICENCE =
- "Copyright (C) 2001,2005-2010 by Jarno Elonen \n"+
- "\n"+
- "Redistribution and use in source and binary forms, with or without\n"+
- "modification, are permitted provided that the following conditions\n"+
- "are met:\n"+
- "\n"+
- "Redistributions of source code must retain the above copyright notice,\n"+
- "this list of conditions and the following disclaimer. Redistributions in\n"+
- "binary form must reproduce the above copyright notice, this list of\n"+
- "conditions and the following disclaimer in the documentation and/or other\n"+
- "materials provided with the distribution. The name of the author may not\n"+
- "be used to endorse or promote products derived from this software without\n"+
- "specific prior written permission. \n"+
- " \n"+
- "THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n"+
- "IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n"+
- "OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n"+
- "IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n"+
- "INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n"+
- "NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n"+
- "DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n"+
- "THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n"+
- "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"+
- "OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
-}
\ No newline at end of file
diff --git a/tests/issue430.html b/tests/issue430.html
deleted file mode 100644
index db6a4f6..0000000
--- a/tests/issue430.html
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
- Issue #430: Do not validate empty fields that is not required.
-
-
-
-
-
-
-
-
- Issue #430: Do not validate empty fields that is not required.
-
- See https://github.com/posabsolute/jQuery-Validation-Engine/issues/430
- for information.
-
-
-
-
diff --git a/tests/issue451.html b/tests/issue451.html
deleted file mode 100644
index b087769..0000000
--- a/tests/issue451.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
- Issue #451
-
-
-
-
-
-
-
-
-
-
- See https://github.com/posabsolute/jQuery-Validation-Engine/issues/451
- for information.
-
-
-
-
diff --git a/tests/issue480.html b/tests/issue480.html
deleted file mode 100644
index a8ba256..0000000
--- a/tests/issue480.html
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
- Issue #451
-
-
-
-
-
-
-
-
-
-
- See https://github.com/posabsolute/jQuery-Validation-Engine/issues/480
- for information.
-
-
-
-
diff --git a/tests/issue493.html b/tests/issue493.html
deleted file mode 100644
index 46f5c09..0000000
--- a/tests/issue493.html
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- Issue #451
-
-
-
-
-
-
-
-
-
-
- See https://github.com/posabsolute/jQuery-Validation-Engine/issues/493
- for information.
-
-
-
-
diff --git a/tests/issue498.html b/tests/issue498.html
deleted file mode 100644
index 4a93321..0000000
--- a/tests/issue498.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
- Issue #498: validate method show only one prompt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/issue507.html b/tests/issue507.html
deleted file mode 100644
index 75c98ac..0000000
--- a/tests/issue507.html
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
- Issue #430: Do not validate empty fields that is not required.
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/issue524.html b/tests/issue524.html
deleted file mode 100644
index 9b4a67f..0000000
--- a/tests/issue524.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
- Issue #524
-
-
-
-
-
-
-
-
-
-
- See https://github.com/posabsolute/jQuery-Validation-Engine/issues/524
- for information.
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/placeholders.html b/tests/placeholders.html
deleted file mode 100644
index 87020d1..0000000
--- a/tests/placeholders.html
+++ /dev/null
@@ -1,296 +0,0 @@
-
-
-
-
- JQuery Validation Engine
-
-
-
-
-
-
-
-
-
-
- Evaluate form
- | Back to index
-
-
- file input not included in tests, as it can only be set by the user
- select does not have a placeholder attribute in html5, however a custom placeholder value can be defined with jquery data attribute
-
- ids to check:
-
b4b650107d6715de9804f6506f94c98894264230 - broken
- 30092b1e57e277f22d0ffcb8bd768ffeb9eb02d6 - broken
- 8c690f39fdc6cde2a30abe4a5098da48c1e2f7fb - broken
- 70734226e588e662dc83b0e66aa91853a03f0c19 - broken
- 7f6df30e7cffc680b725eb14f32af4e464cc539e - broken
- 7c5b05527af47832468b9d6682266d11081fc24f - broken
- 391b738156e23e05121199d7539746bf8f2c0f68 - broken
- a4649825cbfd996e76c37e8a0683de5f5362db0d - working
-
-
-
- none of the following should validate
-
-
- required + empty
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
- select-one
-
-
-
- a
-
-
-
- select-multiple
-
-
-
- a
-
-
-
-
-
-
- required + whitespace
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
- select-one
-
-
-
- a
-
-
-
- select-multiple
-
-
-
- a
-
-
-
-
-
-
-
- required + data-validation-placeholder
-
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
- select-one
-
-
- placeholder
- a
-
-
-
- select-multiple
-
-
- placeholder
- a
-
-
-
-
-
-
- required + data-validation-placeholder + partial whitespace
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
- select-one
-
-
- placeholder
- a
-
-
-
- select-multiple
-
-
- placeholder
- a
-
-
-
-
-
-
-
- required + placeholder
-
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
-
-
-
-
- required + placeholder + partial whitespace
-
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
-
-
- the following should all validate
-
-
- required + data-validation-placeholder + valid data
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
- select-one
-
-
- placeholder
- a
-
-
-
- select-multiple
-
-
- placeholder
- a
-
-
-
-
-
-
-
- required + placeholder + valid data
-
-
- text
-
-
-
-
- password
-
-
-
-
- textarea
-
-
-
-
-
-
-
-
-
-
diff --git a/validationengine.jquery.json b/validationengine.jquery.json
deleted file mode 100644
index d103164..0000000
--- a/validationengine.jquery.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "validationengine",
- "title": "Form Validation Engine",
- "description": "Validate your forms with style. Complete api included for advanced users",
- "keywords": [
- "form",
- "field",
- "validation"
- ],
- "version": "2.6.4",
- "author": {
- "name": "Cedric Dugas",
- "url": "http://www.position-absolute.com/"
- },
- "maintainers": [
- {
- "name": "Olivier Refalo",
- "url": "http://www.crionics.com/"
- }
- ],
- "licenses": [
- {
- "type": "MIT",
- "url": "http://opensource.org/licenses/MIT"
- }
- ],
- "docs": "http://posabsolute.github.com/jQuery-Validation-Engine/",
- "demo": "http://www.position-relative.net/creation/formValidator/",
- "dependencies": {
- "jquery": ">=1.6"
- }
-}
\ No newline at end of file