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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tagtests.java

?? html to xml convertor
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
// 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/TagTests.java,v $// $Author: derrickoswald $// $Date: 2006/06/04 19:17:21 $// $Revision: 1.15 $//// 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 org.htmlparser.Node;import org.htmlparser.Parser;import org.htmlparser.PrototypicalNodeFactory;import org.htmlparser.Tag;import org.htmlparser.filters.NodeClassFilter;import org.htmlparser.tags.LinkTag;import org.htmlparser.tags.MetaTag;import org.htmlparser.tests.ParserTestCase;import org.htmlparser.util.ParserException;public class TagTests extends ParserTestCase {    static    {        System.setProperty ("org.htmlparser.tests.lexerTests.TagTests", "TagTests");    }    private static final String TEST_HTML = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">" +        "<!-- Server: sf-web2 -->\n" +        "<html lang=\"en\">\n" +        "  <head><link rel=\"stylesheet\" type=\"text/css\" href=\"http://sourceforge.net/cssdef.php\">\n" +        "   <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">\n" +        "    <TITLE>SourceForge.net: Modify: 711073 - HTMLTagParser not threadsafe as a static variable in Tag</TITLE>\n" +        "   <SCRIPT language=\"JavaScript\" type=\"text/javascript\">\n" +        "   <!--\n" +        "   function help_window(helpurl) {\n" +        "       HelpWin = window.open( 'http://sourceforge.net' + helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400');\n" +        "   }\n" +        "   // -->\n" +        "   </SCRIPT>\n" +        "       <link rel=\"SHORTCUT ICON\" href=\"/images/favicon.ico\">\n" +        "<!-- This is temp javascript for the jump button. If we could actually have a jump script on the server side that would be ideal -->\n" +        "<script language=\"JavaScript\" type=\"text/javascript\">\n" +        "<!--\n" +        "   function jump(targ,selObj,restore){ //v3.0\n" +        "   if (selObj.options[selObj.selectedIndex].value)\n" +        "       eval(targ+\".location='\"+selObj.options[selObj.selectedIndex].value+\"'\");\n" +        "   if (restore) selObj.selectedIndex=0;\n" +        "   }\n" +        "   //-->\n" +        "</script>\n" +        "<a href=\"http://normallink.com/sometext.html\">\n" +        "<style type=\"text/css\">\n" +        "<!--\n" +        "A:link { text-decoration:none }\n" +        "A:visited { text-decoration:none }\n" +        "A:active { text-decoration:none }\n" +        "A:hover { text-decoration:underline; color:#0066FF; }\n" +        "-->\n" +        "</style>\n" +        "</head>\n" +        "<body bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" link=\"#003399\" vlink=\"#003399\" alink=\"#003399\">\n";    private int testProgress;    public TagTests (String name) {        super(name);    }    public void testTagWithQuotes() throws Exception {        String testHtml =        "<img src=\"http://g-images.amazon.com/images/G/01/merchants/logos/marshall-fields-logo-20.gif\" width=87 height=20 border=0 alt=\"Marshall Field's\">";        createParser(testHtml);        parser.setNodeFactory (new PrototypicalNodeFactory (true));        parseAndAssertNodeCount(1);        assertType("should be Tag",Tag.class,node[0]);        Tag tag = (Tag)node[0];        assertStringEquals("alt","Marshall Field's",tag.getAttribute("ALT"));        assertStringEquals(            "html",            testHtml,            tag.toHtml()        );    }    public void testEmptyTag() throws Exception     {        String html = "<custom/>";        createParser(html);        parser.setNodeFactory (new PrototypicalNodeFactory (true));        parseAndAssertNodeCount(1);        assertType("should be Tag",Tag.class,node[0]);        Tag tag = (Tag)node[0];        assertStringEquals("tag name","CUSTOM",tag.getTagName());        assertTrue("empty tag",tag.isEmptyXmlTag());        assertStringEquals(            "html",            html,            tag.toHtml()        );    }    public void testTagWithCloseTagSymbolInAttribute() throws ParserException {        createParser("<tag att=\"a>b\">");        parser.setNodeFactory (new PrototypicalNodeFactory (true));        parseAndAssertNodeCount(1);        assertType("should be Tag",Tag.class,node[0]);        Tag tag = (Tag)node[0];        assertStringEquals("attribute","a>b",tag.getAttribute("att"));    }    public void testTagWithOpenTagSymbolInAttribute() throws ParserException {        createParser("<tag att=\"a<b\">");        parser.setNodeFactory (new PrototypicalNodeFactory (true));        parseAndAssertNodeCount(1);        assertType("should be Tag",Tag.class,node[0]);        Tag tag = (Tag)node[0];        assertStringEquals("attribute","a<b",tag.getAttribute("att"));    }    public void testTagWithSingleQuote() throws ParserException {        String html = "<tag att=\'a<b\'>";        createParser(html);        parser.setNodeFactory (new PrototypicalNodeFactory (true));        parseAndAssertNodeCount(1);        assertType("should be Tag",Tag.class,node[0]);        Tag tag = (Tag)node[0];        assertStringEquals("html",html,tag.toHtml());        assertStringEquals("attribute","a<b",tag.getAttribute("att"));    }    /**     * The following multi line test cases are from     * bug #725749 Parser does not handle < and > in multi-line attributes     * submitted by Joe Robins (zorblak)     */    public void testMultiLine1 () throws ParserException    {        String html = "<meta name=\"foo\" content=\"foo<bar>\">";        createParser(html);        parseAndAssertNodeCount (1);        assertType ("should be MetaTag", MetaTag.class, node[0]);        Tag tag = (Tag)node[0];        assertStringEquals ("html",html, tag.toHtml ());        String attribute1 = tag.getAttribute ("NAME");        assertStringEquals ("attribute 1","foo", attribute1);        String attribute2 = tag.getAttribute ("CONTENT");        assertStringEquals ("attribute 2","foo<bar>", attribute2);    }    public void testMultiLine2 () throws ParserException    {        String html = "<meta name=\"foo\" content=\"foo<bar\">";        createParser(html);        parseAndAssertNodeCount (1);        assertType ("should be MetaTag", MetaTag.class, node[0]);        Tag tag = (Tag)node[0];        assertStringEquals ("html",html, tag.toHtml ());        String attribute1 = tag.getAttribute ("NAME");        assertStringEquals ("attribute 1","foo", attribute1);        String attribute2 = tag.getAttribute ("CONTENT");        assertStringEquals ("attribute 2","foo<bar", attribute2);    }    public void testMultiLine3 () throws ParserException    {        String html = "<meta name=\"foo\" content=\"foobar>\">";        createParser(html);        parseAndAssertNodeCount (1);        assertType ("should be MetaTag", MetaTag.class, node[0]);        Tag tag = (Tag)node[0];        assertStringEquals ("html",html, tag.toHtml ());        String attribute1 = tag.getAttribute ("NAME");        assertStringEquals ("attribute 1","foo", attribute1);        String attribute2 = tag.getAttribute ("CONTENT");        assertStringEquals ("attribute 2","foobar>", attribute2);    }    public void testMultiLine4 () throws ParserException    {        String html = "<meta name=\"foo\" content=\"foo\nbar>\">";        createParser(html);        parseAndAssertNodeCount (1);        assertType ("should be MetaTag", MetaTag.class, node[0]);        Tag tag = (Tag)node[0];        assertStringEquals ("html",html, tag.toHtml ());        String attribute1 = tag.getAttribute ("NAME");        assertStringEquals ("attribute 1","foo", attribute1);        String attribute2 = tag.getAttribute ("CONTENT");        assertStringEquals ("attribute 2","foo\nbar>", attribute2);    }    /**     * Test multiline tag like attribute.     * See feature request #725749 Handle < and > in multi-line attributes.     */    public void testMultiLine5 () throws ParserException    {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人小视频免费在线观看| 成人av电影在线网| 国产精品美女视频| 欧美精品vⅰdeose4hd| av午夜精品一区二区三区| 婷婷国产v国产偷v亚洲高清| 欧美激情一区二区三区四区| 337p亚洲精品色噜噜噜| 成人av集中营| 国产精品自拍一区| 日韩制服丝袜av| 一区二区三区在线观看欧美| 久久久久久久免费视频了| 欧美日韩国产免费一区二区| 99久久99精品久久久久久| 国内精品伊人久久久久av影院| 亚洲成人激情综合网| 亚洲免费在线视频一区 二区| 中文字幕第一区二区| 日韩欧美国产电影| 4438x成人网最大色成网站| 94色蜜桃网一区二区三区| 国产91对白在线观看九色| 国内成+人亚洲+欧美+综合在线 | jizz一区二区| 国产最新精品免费| 久久精品国产久精国产爱| 丝袜亚洲另类欧美| 亚洲电影在线播放| 亚洲伦理在线精品| 亚洲人吸女人奶水| 日韩一区欧美一区| 国产精品卡一卡二卡三| 日韩亚洲欧美一区| 欧美一级二级三级乱码| 欧美日韩国产成人在线91 | 日韩精品一区二| 69堂成人精品免费视频| 欧美精品自拍偷拍动漫精品| 欧美午夜电影网| 欧美理论在线播放| 91精品国产综合久久国产大片| 欧美日韩一级黄| 在线电影院国产精品| 制服丝袜国产精品| 精品黑人一区二区三区久久| 久久在线观看免费| 国产日产欧美一区二区视频| 国产欧美一区二区精品仙草咪| 国产婷婷一区二区| 国产精品美女一区二区三区 | 欧美刺激脚交jootjob| 亚洲精品一区二区三区影院 | 久久精品一区二区三区不卡| 国产精品天美传媒| 亚洲毛片av在线| 日韩精品乱码免费| 五月天激情综合网| www一区二区| 国产精品三级视频| 亚洲激情校园春色| 偷拍与自拍一区| 九九九久久久精品| a亚洲天堂av| 欧美日韩在线精品一区二区三区激情| 91精品国产综合久久精品麻豆| 日韩午夜激情av| 欧美国产日韩a欧美在线观看| 国产精品不卡在线| 爽爽淫人综合网网站| 国内久久精品视频| 一本高清dvd不卡在线观看 | 中文字幕乱码日本亚洲一区二区| 自拍视频在线观看一区二区| 偷偷要91色婷婷| 成人丝袜高跟foot| 欧美日韩国产bt| 国产午夜精品久久久久久久| 亚洲精选一二三| 国产一区亚洲一区| 91搞黄在线观看| 欧美sm极限捆绑bd| 亚洲欧美激情小说另类| 美女久久久精品| 99久久99久久久精品齐齐| 91麻豆精品国产91久久久久| 国产日产欧美精品一区二区三区| 亚洲综合一区二区三区| 国产精品一二一区| 欧美日韩国产在线观看| 国产午夜精品一区二区三区嫩草 | 国产精品无圣光一区二区| 亚洲国产一区在线观看| 国产精品中文字幕欧美| 欧美在线不卡视频| 欧美高清在线一区二区| 美女视频黄 久久| 午夜激情久久久| 欧美肥妇毛茸茸| 美女视频黄免费的久久| 狠狠狠色丁香婷婷综合久久五月| 国产福利一区二区| 国产制服丝袜一区| 国产iv一区二区三区| 678五月天丁香亚洲综合网| 国产精品理论片| 狠狠狠色丁香婷婷综合激情| 欧美伊人久久大香线蕉综合69 | 国产亚洲精久久久久久| 午夜精品视频一区| 色屁屁一区二区| 国产精品美女久久福利网站| 国产美女在线观看一区| 欧美一区二区三区视频| 一区二区三区在线高清| 成人一级黄色片| 精品剧情在线观看| 日日摸夜夜添夜夜添国产精品 | 亚洲蜜臀av乱码久久精品蜜桃| 激情都市一区二区| 欧美一区二区三区男人的天堂 | 国产激情91久久精品导航 | 天天色天天操综合| 亚洲成av人在线观看| 国产欧美日本一区二区三区| 极品少妇xxxx精品少妇偷拍| 色婷婷av一区二区三区gif| 国产精品入口麻豆九色| 国产一区二区伦理片| 欧美精品一区二区久久婷婷 | 国产成人日日夜夜| www久久久久| 国产真实乱偷精品视频免| 2020国产成人综合网| 久久99日本精品| 精品对白一区国产伦| 久久97超碰色| 2021国产精品久久精品| 久久精品久久精品| 精品国精品自拍自在线| 国产一区亚洲一区| 中文字幕精品三区| 成人av中文字幕| 日韩毛片高清在线播放| 一本色道久久加勒比精品 | 亚洲第四色夜色| 欧美日本视频在线| 美女在线视频一区| 26uuu欧美| 成人国产精品免费观看动漫| 国产精品福利影院| 在线精品视频一区二区三四| 日韩高清不卡一区二区| 日韩免费视频一区二区| 国产在线视频一区二区三区| 国产日产欧美精品一区二区三区| 成人av在线网站| 亚洲小说欧美激情另类| 欧美一区二区三区日韩视频| 国产九九视频一区二区三区| 亚洲欧洲精品一区二区三区不卡| 色噜噜久久综合| 三级在线观看一区二区| 精品国产电影一区二区| 成人av资源在线| 无吗不卡中文字幕| 26uuu色噜噜精品一区二区| 99热这里都是精品| 天堂av在线一区| 久久久久久97三级| 欧美午夜精品理论片a级按摩| 麻豆国产精品一区二区三区| 国产精品网站在线播放| 欧美日韩成人高清| 国产乱码一区二区三区| 亚洲激情图片qvod| 日韩欧美专区在线| 91一区在线观看| 青青草国产成人av片免费| 国产精品伦理一区二区| 欧美日韩三级一区| 成人激情av网| 老司机精品视频导航| 国产精品第一页第二页第三页| 欧美日本精品一区二区三区| 懂色av一区二区三区蜜臀| 香蕉影视欧美成人| 国产精品久久久久久久第一福利 | 91精品国产高清一区二区三区| 国产精品一区二区不卡| 亚洲宅男天堂在线观看无病毒| 精品少妇一区二区三区日产乱码| 成+人+亚洲+综合天堂| 久久99热国产| 亚洲bt欧美bt精品777| 中文字幕亚洲在| 欧美成va人片在线观看| 在线观看区一区二| 成人动漫中文字幕| 久久99国内精品|