Remove the getURLcontent tests 61/11161/2
Sylvestre Ledru [Fri, 29 Mar 2013 09:08:11 +0000 (10:08 +0100)]
Change-Id: I84873a670292336a858e2f2ccec40d38f4f834b1

scilab/modules/fileio/tests/unit_tests/getURLcontent.dia.ref [deleted file]
scilab/modules/fileio/tests/unit_tests/getURLcontent.tst [deleted file]

diff --git a/scilab/modules/fileio/tests/unit_tests/getURLcontent.dia.ref b/scilab/modules/fileio/tests/unit_tests/getURLcontent.dia.ref
deleted file mode 100644 (file)
index 60ebc0b..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2011 - Sylvestre LEDRU
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-//getURLcontent
-HTMLContent=getURLcontent("http://www.scilab.org:80");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-HTMLContent=getURLcontent("http://plop:ae@www.scilab.org:80");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-HTMLContent=getURLcontent("http://www.scilab.org/aze");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checkequal(grep(HTMLContent,"404"), []);
-HTMLContent=getURLcontent("http://www.scilab.org");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-HTMLContent=getURLcontent("http://www.scilab.org/");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-HTMLContent=getURLcontent("ftp://ftp.free.fr/pub/Distributions_Linux/debian/README");
-assert_checktrue(length(HTMLContent) > 0);
-assert_checktrue(grep(HTMLContent,"Linux") <> []);
-// HTTPS
-HTMLContent=getURLcontent("https://encrypted.google.com");
-assert_checktrue(length(HTMLContent) > 100);
-HTMLContent=getURLcontent("http://httpbin.org/basic-auth/user/passwd","user","passwd");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"authenticated") <> []);
-// Badly formated URL
-assert_checkerror("getURLcontent(''http://plop@ae:www.scilab.org:80'');", [], 999);
diff --git a/scilab/modules/fileio/tests/unit_tests/getURLcontent.tst b/scilab/modules/fileio/tests/unit_tests/getURLcontent.tst
deleted file mode 100644 (file)
index db6d8ba..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-// =============================================================================
-// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
-// Copyright (C) 2011 - Sylvestre LEDRU
-//
-//  This file is distributed under the same license as the Scilab package.
-// =============================================================================
-
-//getURL
-
-[f, HTMLContent]=getURL("http://www.scilab.org:80");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-
-[f, HTMLContent]=getURL("http://plop:ae@www.scilab.org:80");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-
-[f, HTMLContent]=getURL("http://www.scilab.org/aze");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checkequal(grep(HTMLContent,"404"), []);
-
-
-
-[f, HTMLContent]=getURL("http://www.scilab.org");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-
-[f, HTMLContent]=getURL("http://www.scilab.org/");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"html") <> []);
-
-[f, HTMLContent]=getURL("ftp://ftp.free.fr/pub/Distributions_Linux/debian/README");
-assert_checktrue(length(HTMLContent) > 0);
-assert_checktrue(grep(HTMLContent,"Linux") <> []);
-
-// HTTPS
-[f, HTMLContent]=getURL("https://encrypted.google.com");
-assert_checktrue(length(HTMLContent) > 100);
-
-[f, HTMLContent]=getURL("http://httpbin.org/basic-auth/user/passwd","user","passwd");
-assert_checktrue(length(HTMLContent) > 10);
-assert_checktrue(grep(HTMLContent,"authenticated") <> []);
-
-// Badly formated URL
-assert_checkerror("getURL(''http://plop@ae:www.scilab.org:80'');", [], 999);