Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/7b2cf96741b2ae2f9426f26ee9d05ed60da57911
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/7b2cf96741b2ae2f9426f26ee9d05ed60da57911
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/7b2cf96741b2ae2f9426f26ee9d05ed60da57911

The branch, master has been updated
       via  7b2cf96741b2ae2f9426f26ee9d05ed60da57911 (commit)
      from  0db0abac48773ee2fb250aad99e6a215e05c3bd7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=7b2cf96741b2ae2f9426f26ee9d05ed60da57911
commit 7b2cf96741b2ae2f9426f26ee9d05ed60da57911
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    add ordered list generator cgi

diff --git a/cgi-bin/ordered-list.cgi b/cgi-bin/ordered-list.cgi
new file mode 100755
index 0000000..2096d0e
--- /dev/null
+++ b/cgi-bin/ordered-list.cgi
@@ -0,0 +1,59 @@
+#!/usr/bin/python3
+
+'''
+NetSurf test ordered list generator
+
+The liststyle form parameter may be given to select different list style types.
+'''
+
+import os
+import re
+import cgi
+import cgitb
+
+cgitb.enable()
+
+def main():
+    '''
+    The test plan generator
+    '''
+    docroot = os.environ["DOCUMENT_ROOT"]
+
+    testroot = os.path.join(docroot, "monkey-test")
+
+    params = cgi.FieldStorage()
+
+    liststyle = 'decimal'
+    listcount = 1000
+
+    if 'liststyle' in params and re.match('^[A-Za-z0-9-]+$', 
params['liststyle'].value):
+        liststyle = params['liststyle'].value
+
+    if 'listcount' in params and re.match('^[0-9]+$', 
params['listcount'].value):
+        listcount = num(params['listcount'].value)
+
+    if listcount > 10000:
+        listcount = 10000
+        
+    print('Content-Type: text/html')
+    print('')
+
+    print('<!DOCTYPE html>')
+    print('<html>')
+    print('<head>')
+    print('<style>')
+    print('ol.a {list-style-type:',liststyle,';}')
+    print('</style>')
+    print('</head>')
+    print('<body>')
+    print('<h1>ordered list marker test with',liststyle,'style</h1>')
+    print('<ol class="a">')
+    for num in range(1, listcount):
+        print('<li>',num,'</li>', sep="")
+    
+    print('</ol>')
+    print('</body>')
+    print('</html>')
+
+if __name__ == "__main__":
+    main()


-----------------------------------------------------------------------

Summary of changes:
 cgi-bin/ordered-list.cgi |   59 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
 create mode 100755 cgi-bin/ordered-list.cgi

diff --git a/cgi-bin/ordered-list.cgi b/cgi-bin/ordered-list.cgi
new file mode 100755
index 0000000..2096d0e
--- /dev/null
+++ b/cgi-bin/ordered-list.cgi
@@ -0,0 +1,59 @@
+#!/usr/bin/python3
+
+'''
+NetSurf test ordered list generator
+
+The liststyle form parameter may be given to select different list style types.
+'''
+
+import os
+import re
+import cgi
+import cgitb
+
+cgitb.enable()
+
+def main():
+    '''
+    The test plan generator
+    '''
+    docroot = os.environ["DOCUMENT_ROOT"]
+
+    testroot = os.path.join(docroot, "monkey-test")
+
+    params = cgi.FieldStorage()
+
+    liststyle = 'decimal'
+    listcount = 1000
+
+    if 'liststyle' in params and re.match('^[A-Za-z0-9-]+$', 
params['liststyle'].value):
+        liststyle = params['liststyle'].value
+
+    if 'listcount' in params and re.match('^[0-9]+$', 
params['listcount'].value):
+        listcount = num(params['listcount'].value)
+
+    if listcount > 10000:
+        listcount = 10000
+        
+    print('Content-Type: text/html')
+    print('')
+
+    print('<!DOCTYPE html>')
+    print('<html>')
+    print('<head>')
+    print('<style>')
+    print('ol.a {list-style-type:',liststyle,';}')
+    print('</style>')
+    print('</head>')
+    print('<body>')
+    print('<h1>ordered list marker test with',liststyle,'style</h1>')
+    print('<ol class="a">')
+    for num in range(1, listcount):
+        print('<li>',num,'</li>', sep="")
+    
+    print('</ol>')
+    print('</body>')
+    print('</html>')
+
+if __name__ == "__main__":
+    main()


-- 
NetSurf test cases
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to