From b2a4b476e1c65fc6c33668a230cc05b5622e9aee Mon Sep 17 00:00:00 2001 From: Lammert Bies Date: Thu, 8 Dec 2016 03:59:53 +0100 Subject: [PATCH] Removed LUA script file --- test/1000images.lua | 199 -------------------------------------------- 1 file changed, 199 deletions(-) delete mode 100644 test/1000images.lua diff --git a/test/1000images.lua b/test/1000images.lua deleted file mode 100644 index 8601a42a..00000000 --- a/test/1000images.lua +++ /dev/null @@ -1,199 +0,0 @@ -mg.write("HTTP/1.1 200 OK\r\n") -mg.write("Connection: close\r\n") -mg.write("Content-Type: text/html; charset=utf-8\r\n") -mg.write("\r\n") - -t = os.time() - -if not mg.request_info.query_string then - cnt = 1000 -else - cnt = tonumber(mg.get_var(mg.request_info.query_string, "cnt")) -end - -cnt = 100*math.floor(cnt/100) - -mg.write([[ - - - ]] .. cnt .. [[ images - - - -

A large gallery of small images:

-

-]]) -for s=0,(cnt/100)-1 do -local ts = (tostring(t) .. tostring(s)) -mg.write([[ -

page ]]..s..[[

- - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -]]) -mg.write([[ - - - - - - - - - - - - -
-]]) -end -mg.write([[ -

-

- Test case: all images are displayed. -

- - -]])