亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pagetests.java

?? html to xml convertor
?? JAVA
字號:
// HTMLParser Library $Name: v1_6 $ - A java-based parser for HTML// http://sourceforge.org/projects/htmlparser// Copyright (C) 2004 Derrick Oswald//// Revision Control Information//// $Source: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/lexerTests/PageTests.java,v $// $Author: derrickoswald $// $Date: 2006/04/07 00:58:19 $// $Revision: 1.20 $//// This library is free software; you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public// License as published by the Free Software Foundation; either// version 2.1 of the License, or (at your option) any later version.//// This library is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU// Lesser General Public License for more details.//// You should have received a copy of the GNU Lesser General Public// License along with this library; if not, write to the Free Software// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA//package org.htmlparser.tests.lexerTests;import java.io.IOException;import java.net.URL;import java.net.URLConnection;import org.htmlparser.lexer.Page;import org.htmlparser.tests.ParserTestCase;import org.htmlparser.util.ParserException;public class PageTests extends ParserTestCase{    static    {        System.setProperty ("org.htmlparser.tests.lexerTests.PageTests", "PageTests");    }    /**     * The default charset.     * This should be <code>ISO-8859-1</code>,     * see RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt?number=2616) section 3.7.1     * Another alias is "8859_1".     */    public static final String DEFAULT_CHARSET = "ISO-8859-1";    /**     * Base URI for absolute URL tests.     */    static final String BASEURI = "http://a/b/c/d;p?q";    /**     * Page for absolute URL tests.     */    public static Page mPage;    static    {        mPage = new Page ();        mPage.setBaseUrl (BASEURI);    }            /**     * Test the third level page class.     */    public PageTests (String name)    {        super (name);    }    /**     * Test initialization with a null value.     */    public void testNull () throws ParserException    {        try        {            new Page ((URLConnection)null);            assertTrue ("null value in constructor", false);        }        catch (IllegalArgumentException iae)        {            // expected outcome        }        try        {            new Page ((String)null);            assertTrue ("null value in constructor", false);        }        catch (IllegalArgumentException iae)        {            // expected outcome        }    }    /**     * Test initialization with a real value.     */    public void testURLConnection () throws ParserException, IOException    {        String link;        URL url;        link = "http://www.ibm.com/jp/";        url = new URL (link);        new Page (url.openConnection ());    }    /**     * Test initialization with non-existant URL.     */    public void testBadURLConnection () throws IOException    {        String link;        URL url;        link = "http://www.bigbogosity.org/";        url = new URL (link);        try        {           new Page (url.openConnection ());        }        catch (ParserException pe)        {            // expected response        }    }    //    // Tests from Appendix C Examples of Resolving Relative URI References    // RFC 2396 Uniform Resource Identifiers (URI): Generic Syntax    // T. Berners-Lee et al.    // http://www.ietf.org/rfc/rfc2396.txt    // Within an object with a well-defined base URI of    // http://a/b/c/d;p?q    // the relative URI would be resolved as follows:    // C.1.  Normal Examples    //  g:h           =  g:h    //  g             =  http://a/b/c/g    //  ./g           =  http://a/b/c/g    //  g/            =  http://a/b/c/g/    //  /g            =  http://a/g    //  //g           =  http://g    //  ?y            =  http://a/b/c/?y    //  g?y           =  http://a/b/c/g?y    //  #s            =  (current document)#s    //  g#s           =  http://a/b/c/g#s    //  g?y#s         =  http://a/b/c/g?y#s    //  ;x            =  http://a/b/c/;x    //  g;x           =  http://a/b/c/g;x    //  g;x?y#s       =  http://a/b/c/g;x?y#s    //  .             =  http://a/b/c/    //  ./            =  http://a/b/c/    //  ..            =  http://a/b/    //  ../           =  http://a/b/    //  ../g          =  http://a/b/g    //  ../..         =  http://a/    //  ../../        =  http://a/    //  ../../g       =  http://a/g    public void test1 () throws ParserException    {        assertEquals ("test1 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    public void test2 () throws ParserException    {        assertEquals ("test2 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("g"));    }    public void test3 () throws ParserException    {        assertEquals ("test3 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("./g"));    }    public void test4 () throws ParserException    {        assertEquals ("test4 failed", "http://a/b/c/g/", mPage.getAbsoluteURL ("g/"));    }    public void test5 () throws ParserException    {        assertEquals ("test5 failed", "http://a/g", mPage.getAbsoluteURL ("/g"));    }    public void test6 () throws ParserException    {        assertEquals ("test6 failed", "http://g", mPage.getAbsoluteURL ("//g"));    }    public void test7 () throws ParserException    {        assertEquals ("test7 strict failed", "http://a/b/c/?y", mPage.getAbsoluteURL ("?y", true));        assertEquals ("test7 non-strict failed", "http://a/b/c/d;p?y", mPage.getAbsoluteURL ("?y"));    }    public void test8 () throws ParserException    {        assertEquals ("test8 failed", "http://a/b/c/g?y", mPage.getAbsoluteURL ("g?y"));    }    public void test9 () throws ParserException    {        assertEquals ("test9 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    public void test10 () throws ParserException    {        assertEquals ("test10 failed", "https:h", mPage.getAbsoluteURL ("https:h"));    }    //  #s            =  (current document)#s    public void test11 () throws ParserException    {        assertEquals ("test11 failed", "http://a/b/c/g#s", mPage.getAbsoluteURL ("g#s"));    }    public void test12 () throws ParserException    {        assertEquals ("test12 failed", "http://a/b/c/g?y#s", mPage.getAbsoluteURL ("g?y#s"));    }    public void test13 () throws ParserException    {        assertEquals ("test13 failed", "http://a/b/c/;x", mPage.getAbsoluteURL (";x"));    }    public void test14 () throws ParserException    {        assertEquals ("test14 failed", "http://a/b/c/g;x", mPage.getAbsoluteURL ("g;x"));    }    public void test15 () throws ParserException    {        assertEquals ("test15 failed", "http://a/b/c/g;x?y#s", mPage.getAbsoluteURL ("g;x?y#s"));    }    public void test16 () throws ParserException    {        assertEquals ("test16 failed", "http://a/b/c/", mPage.getAbsoluteURL ("."));    }    public void test17 () throws ParserException    {        assertEquals ("test17 failed", "http://a/b/c/", mPage.getAbsoluteURL ("./"));    }    public void test18 () throws ParserException    {        assertEquals ("test18 failed", "http://a/b/", mPage.getAbsoluteURL (".."));    }    public void test19 () throws ParserException    {        assertEquals ("test19 failed", "http://a/b/", mPage.getAbsoluteURL ("../"));    }    public void test20 () throws ParserException    {        assertEquals ("test20 failed", "http://a/b/g", mPage.getAbsoluteURL ("../g"));    }    public void test21 () throws ParserException    {        assertEquals ("test21 failed", "http://a/", mPage.getAbsoluteURL ("../.."));    }    public void test22 () throws ParserException    {        assertEquals ("test22 failed", "http://a/g", mPage.getAbsoluteURL ("../../g"));    }    // C.2.  Abnormal Examples    //   Although the following abnormal examples are unlikely to occur in    //   normal practice, all URI parsers should be capable of resolving them    //   consistently.  Each example uses the same base as above.    //    //   An empty reference refers to the start of the current document.    //    //      <>            =  (current document)    //    //   Parsers must be careful in handling the case where there are more    //   relative path ".." segments than there are hierarchical levels in the    //   base URI's path.  Note that the ".." syntax cannot be used to change    //   the authority component of a URI.    //    //      ../../../g    =  http://a/../g    //      ../../../../g =  http://a/../../g    //    //   In practice, some implementations strip leading relative symbolic    //   elements (".", "..") after applying a relative URI calculation, based    //   on the theory that compensating for obvious author errors is better    //   than allowing the request to fail.  Thus, the above two references    //   will be interpreted as "http://a/g" by some implementations.    //    //   Similarly, parsers must avoid treating "." and ".." as special when    //   they are not complete components of a relative path.    //    //      /./g          =  http://a/./g    //      /../g         =  http://a/../g    //      g.            =  http://a/b/c/g.    //      .g            =  http://a/b/c/.g    //      g..           =  http://a/b/c/g..    //      ..g           =  http://a/b/c/..g    //    //   Less likely are cases where the relative URI uses unnecessary or    //   nonsensical forms of the "." and ".." complete path segments.    //    //      ./../g        =  http://a/b/g    //      ./g/.         =  http://a/b/c/g/    //      g/./h         =  http://a/b/c/g/h    //      g/../h        =  http://a/b/c/h    //      g;x=1/./y     =  http://a/b/c/g;x=1/y    //      g;x=1/../y    =  http://a/b/c/y    //    //   All client applications remove the query component from the base URI    //   before resolving relative URI.  However, some applications fail to    //   separate the reference's query and/or fragment components from a    //   relative path before merging it with the base path.  This error is    //   rarely noticed, since typical usage of a fragment never includes the    //   hierarchy ("/") character, and the query component is not normally    //   used within relative references.    //    //      g?y/./x       =  http://a/b/c/g?y/./x    //      g?y/../x      =  http://a/b/c/g?y/../x    //      g#s/./x       =  http://a/b/c/g#s/./x    //      g#s/../x      =  http://a/b/c/g#s/../x    //    //   Some parsers allow the scheme name to be present in a relative URI if    //   it is the same as the base URI scheme.  This is considered to be a    //   loophole in prior specifications of partial URI [RFC1630]. Its use    //   should be avoided.    //    //      http:g        =  http:g           ; for validating parsers    //                    |  http://a/b/c/g   ; for backwards compatibility//    public void test23 () throws HTMLParserException//    {//        assertEquals ("test23 failed", "http://a/../g", mPage.getAbsoluteURL ("../../../g"));//    }//    public void test24 () throws HTMLParserException//    {//        assertEquals ("test24 failed", "http://a/../../g", mPage.getAbsoluteURL ("../../../../g"));//    }    public void test23 () throws ParserException    {        assertEquals ("test23 failed", "http://a/g", mPage.getAbsoluteURL ("../../../g"));    }    public void test24 () throws ParserException    {        assertEquals ("test24 failed", "http://a/g", mPage.getAbsoluteURL ("../../../../g"));    }    public void test25 () throws ParserException    {        assertEquals ("test25 failed", "http://a/./g", mPage.getAbsoluteURL ("/./g"));    }    public void test26 () throws ParserException    {        assertEquals ("test26 failed", "http://a/../g", mPage.getAbsoluteURL ("/../g"));    }    public void test27 () throws ParserException    {        assertEquals ("test27 failed", "http://a/b/c/g.", mPage.getAbsoluteURL ("g."));    }    public void test28 () throws ParserException    {        assertEquals ("test28 failed", "http://a/b/c/.g", mPage.getAbsoluteURL (".g"));    }    public void test29 () throws ParserException    {        assertEquals ("test29 failed", "http://a/b/c/g..", mPage.getAbsoluteURL ("g.."));    }    public void test30 () throws ParserException    {        assertEquals ("test30 failed", "http://a/b/c/..g", mPage.getAbsoluteURL ("..g"));    }    public void test31 () throws ParserException    {        assertEquals ("test31 failed", "http://a/b/g", mPage.getAbsoluteURL ("./../g"));    }    public void test32 () throws ParserException    {        assertEquals ("test32 failed", "http://a/b/c/g/", mPage.getAbsoluteURL ("./g/."));    }    public void test33 () throws ParserException    {        assertEquals ("test33 failed", "http://a/b/c/g/h", mPage.getAbsoluteURL ("g/./h"));    }    public void test34 () throws ParserException    {        assertEquals ("test34 failed", "http://a/b/c/h", mPage.getAbsoluteURL ("g/../h"));    }    public void test35 () throws ParserException    {        assertEquals ("test35 failed", "http://a/b/c/g;x=1/y", mPage.getAbsoluteURL ("g;x=1/./y"));    }    public void test36 () throws ParserException    {        assertEquals ("test36 failed", "http://a/b/c/y", mPage.getAbsoluteURL ("g;x=1/../y"));    }    public void test37 () throws ParserException    {        assertEquals ("test37 failed", "http://a/b/c/g?y/./x", mPage.getAbsoluteURL ("g?y/./x"));    }    public void test38 () throws ParserException    {        assertEquals ("test38 failed", "http://a/b/c/g?y/../x", mPage.getAbsoluteURL ("g?y/../x"));    }    public void test39 () throws ParserException    {        assertEquals ("test39 failed", "http://a/b/c/g#s/./x", mPage.getAbsoluteURL ("g#s/./x"));    }    public void test40 () throws ParserException    {        assertEquals ("test40 failed", "http://a/b/c/g#s/../x", mPage.getAbsoluteURL ("g#s/../x"));    }//    public void test41 () throws HTMLParserException//    {//        assertEquals ("test41 failed", "http:g", mPage.getAbsoluteURL ("http:g"));//    }    public void test41 () throws ParserException    {        assertEquals ("test41 failed", "http://a/b/c/g", mPage.getAbsoluteURL ("http:g"));    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情艳妇裸体舞| 久久精品国产一区二区| 亚洲午夜激情网页| 国产一区在线看| 欧美日韩国产在线播放网站| 久久久久久久精| 亚洲国产成人av| 国产盗摄女厕一区二区三区| 欧美电影在哪看比较好| 中文字幕一区免费在线观看| 国产真实精品久久二三区| 欧美性极品少妇| 综合婷婷亚洲小说| 国产精品1024| 日韩美女一区二区三区四区| 亚洲综合小说图片| 99久久精品一区二区| 欧美成人在线直播| 免费亚洲电影在线| 欧美日韩精品一区视频| 亚洲人吸女人奶水| 不卡欧美aaaaa| 中文字幕不卡三区| 国产91精品精华液一区二区三区| 51精品秘密在线观看| 亚洲一区免费视频| 欧美性xxxxxxxx| 亚洲欧洲综合另类在线| av色综合久久天堂av综合| 久久精品一区八戒影视| 国产伦精品一区二区三区免费迷| 欧美r级在线观看| 日韩精品亚洲一区二区三区免费| 欧美在线观看视频在线| 亚洲精品乱码久久久久久久久| 粉嫩在线一区二区三区视频| 亚洲精品一区二区三区四区高清| 日韩黄色片在线观看| 制服丝袜中文字幕一区| 丝袜国产日韩另类美女| 欧美一二三四区在线| 日韩精品亚洲一区二区三区免费| 欧美精品v日韩精品v韩国精品v| 一区二区三区久久| 欧美日韩aaaaaa| 免费人成精品欧美精品| 精品91自产拍在线观看一区| 国产一区二区按摩在线观看| 国产欧美精品在线观看| 国产东北露脸精品视频| 中文字幕一区二区三中文字幕| 成人毛片视频在线观看| 中文字幕一区二区三区在线观看 | 日韩一区二区三区在线视频| 蜜桃视频第一区免费观看| 精品伦理精品一区| 丁香激情综合国产| 一区二区三区中文在线| 欧美美女网站色| 国产麻豆9l精品三级站| 国产精品国产a级| 欧美又粗又大又爽| 日韩av在线播放中文字幕| 国产亚洲精品久| 91丨九色丨蝌蚪富婆spa| 无码av免费一区二区三区试看 | 日本强好片久久久久久aaa| 欧美哺乳videos| 国产超碰在线一区| 亚洲一级二级在线| 久久一二三国产| 日本乱人伦一区| 激情图区综合网| 亚洲欧美福利一区二区| 欧美一区二区啪啪| av电影一区二区| 亚洲不卡av一区二区三区| 久久人人97超碰com| 色呦呦国产精品| 久久超碰97中文字幕| 亚洲少妇30p| 欧美xxxxx裸体时装秀| 北岛玲一区二区三区四区| 日本欧美一区二区在线观看| 国产精品色哟哟网站| 欧美成人一区二区| 欧美亚洲高清一区| 国产不卡在线一区| 人人狠狠综合久久亚洲| 亚洲视频精选在线| 久久久久久久综合色一本| 欧美二区三区91| 色先锋久久av资源部| 国产一区二区精品久久| 亚洲福利国产精品| 亚洲欧洲精品一区二区三区不卡| 欧美一级片免费看| 欧美亚洲综合一区| 99久久er热在这里只有精品15| 蜜臀a∨国产成人精品| 亚洲午夜在线视频| 国产精品传媒在线| 中文字幕欧美激情| 精品伦理精品一区| 日韩女优制服丝袜电影| 欧美人妇做爰xxxⅹ性高电影| 成人深夜福利app| 国产成人免费xxxxxxxx| 激情综合色播激情啊| 青青草国产成人av片免费| 亚洲高清视频中文字幕| 亚洲影视资源网| 伊人婷婷欧美激情| 亚洲欧美成aⅴ人在线观看| 欧美激情一区在线观看| 欧美激情艳妇裸体舞| 中文在线免费一区三区高中清不卡| 日韩欧美国产三级| 欧美va在线播放| 亚洲精品一区二区三区99| 精品国产乱码久久久久久老虎| 欧美一区日韩一区| 欧美一级夜夜爽| 日韩欧美国产麻豆| 久久久精品影视| 亚洲国产精品99久久久久久久久| 国产欧美日韩视频一区二区| 亚洲欧洲美洲综合色网| 亚洲乱码国产乱码精品精可以看| 最新久久zyz资源站| 亚洲综合激情小说| 爽好久久久欧美精品| 美女免费视频一区| 国产精一品亚洲二区在线视频| 国产麻豆精品久久一二三| 岛国一区二区在线观看| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 高清视频一区二区| 不卡免费追剧大全电视剧网站| 99久久综合狠狠综合久久| 在线观看日韩电影| 日韩欧美亚洲国产精品字幕久久久| 欧美电影免费观看高清完整版在 | 久久久精品免费观看| 国产精品免费久久久久| 亚洲另类色综合网站| 日韩高清国产一区在线| 久久9热精品视频| 不卡在线视频中文字幕| 欧美日韩精品一二三区| 26uuu久久天堂性欧美| 国产精品久久久久久久久久免费看| 悠悠色在线精品| 青青草97国产精品免费观看| 国产精品羞羞答答xxdd| 色乱码一区二区三区88| 欧美一二三区在线观看| 中文字幕一区二区三区在线不卡| 日日夜夜精品视频天天综合网| 国产又粗又猛又爽又黄91精品| 91看片淫黄大片一级| 欧美一区二区美女| 亚洲天堂网中文字| 久久99国产精品成人| 91视视频在线直接观看在线看网页在线看| 91黄色激情网站| 欧美国产综合色视频| 日韩1区2区日韩1区2区| jlzzjlzz欧美大全| 日韩欧美的一区| 亚洲综合一二区| 成人听书哪个软件好| 日韩午夜精品视频| 夜色激情一区二区| 国产成人精品免费网站| 欧美一区二区三区精品| 亚洲精品免费电影| 成人综合婷婷国产精品久久免费| 欧美乱妇一区二区三区不卡视频| 国产精品美女久久久久久久久 | 欧美日韩激情一区二区三区| 中文字幕乱码日本亚洲一区二区 | 亚洲精品视频免费观看| 国产毛片精品一区| 欧美一级高清片在线观看| 一个色在线综合| 99国产精品一区| 国产欧美精品国产国产专区 | 久久一夜天堂av一区二区三区| 午夜一区二区三区在线观看| 色综合天天做天天爱| 1024成人网色www| 粉嫩av亚洲一区二区图片| 精品国产一区久久| 日本午夜一本久久久综合| 欧美老年两性高潮| 午夜亚洲国产au精品一区二区| 欧美亚洲综合一区| 亚洲一二三区视频在线观看| 色综合久久99|