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

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

?? tagtests.java

?? html to xml convertor
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// 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    {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产小视频| 久久99精品国产.久久久久| 久久久五月婷婷| 精品国产制服丝袜高跟| 欧美一区二区三区在线看| 欧美一区午夜视频在线观看| 欧美日韩一区国产| 91精品国产综合久久久蜜臀图片| 欧美日韩视频不卡| 日韩视频免费观看高清完整版在线观看| 在线精品视频小说1| 欧美网站大全在线观看| 欧美日本一道本在线视频| 日韩天堂在线观看| 久久久91精品国产一区二区精品| 久久精品人人做| 亚洲精品日日夜夜| 蜜臀va亚洲va欧美va天堂| 麻豆精品国产91久久久久久| 国产成人午夜视频| eeuss鲁一区二区三区| 91免费在线播放| 4438x亚洲最大成人网| 亚洲精品在线观看网站| 国产精品成人在线观看| 午夜久久福利影院| 国产经典欧美精品| 91黄视频在线观看| 久久亚洲一级片| 亚洲激情网站免费观看| 另类中文字幕网| 色综合久久精品| 2017欧美狠狠色| 亚洲综合自拍偷拍| 国产高清精品网站| 欧美日韩在线一区二区| 国产嫩草影院久久久久| 五月婷婷久久丁香| 99久久夜色精品国产网站| 日韩欧美一二三四区| 中文字幕在线不卡一区| 美女网站在线免费欧美精品| 99久久婷婷国产综合精品| 精品国产乱码久久久久久1区2区| 亚洲精品乱码久久久久| 韩国午夜理伦三级不卡影院| 欧美午夜一区二区三区免费大片| 国产欧美一区二区精品久导航| 午夜精品久久久久久久99樱桃| 国产精品一区二区久激情瑜伽| 欧美日韩免费高清一区色橹橹| 国产精品欧美一级免费| 蜜臀91精品一区二区三区| 精品视频1区2区3区| 亚洲色图另类专区| 成人激情图片网| 国产视频亚洲色图| 免费欧美在线视频| 在线电影院国产精品| 亚洲男人电影天堂| 91免费精品国自产拍在线不卡| 国产欧美精品一区| 久久成人免费电影| 精品成a人在线观看| 日本欧美加勒比视频| 欧美日韩精品是欧美日韩精品| 一区二区三区中文在线| 日本韩国视频一区二区| 亚洲色欲色欲www| 成人aa视频在线观看| 国产情人综合久久777777| 国产精品91一区二区| 久久久久久久精| 成人午夜短视频| 国产精品国产成人国产三级 | 日韩激情视频网站| 欧美在线观看视频在线| 亚洲一区二区精品3399| 欧美人妇做爰xxxⅹ性高电影 | 麻豆久久久久久久| 欧美xxxxxxxx| 国产精品系列在线播放| 国产亚洲美州欧州综合国| 高清av一区二区| 亚洲免费av高清| 在线成人免费观看| 韩国欧美一区二区| 中文字幕欧美一区| 欧美日韩免费高清一区色橹橹| 日本亚洲天堂网| 337p粉嫩大胆色噜噜噜噜亚洲| 国产成人精品网址| 亚洲人成精品久久久久久 | 丝袜国产日韩另类美女| 日韩一区二区三区免费看| 国产精品一区在线观看你懂的| 国产欧美精品一区二区三区四区| 91视频一区二区三区| 亚洲www啪成人一区二区麻豆| 精品日韩99亚洲| 97se亚洲国产综合自在线不卡| 亚洲激情欧美激情| 日韩一区二区中文字幕| 成人福利电影精品一区二区在线观看| 亚洲精品乱码久久久久久| 欧美一区二区三区免费大片| 国产成+人+日韩+欧美+亚洲| 亚洲欧美日韩国产成人精品影院| 欧美三级日韩在线| 国产成人av电影在线| 亚洲国产中文字幕| 日本一区二区不卡视频| 欧美日韩精品专区| 成人激情校园春色| 免费人成在线不卡| 亚洲最大成人综合| 国产丝袜美腿一区二区三区| 欧美日韩国产一级片| 99久久婷婷国产综合精品电影| 蜜桃精品在线观看| 亚洲黄色小视频| 国产蜜臀97一区二区三区| 欧美日韩一区二区三区高清| 国产成人亚洲综合a∨婷婷| 日韩av一二三| 一区二区三区免费网站| 国产精品成人在线观看 | 成人毛片老司机大片| 日本91福利区| 亚洲一区二三区| 亚洲欧美日韩一区二区三区在线观看| 欧美精品一区二区久久久| 欧美精品一卡二卡| 欧美性欧美巨大黑白大战| 91天堂素人约啪| 菠萝蜜视频在线观看一区| 国产一区二区三区最好精华液| 日韩国产在线一| 午夜天堂影视香蕉久久| 亚洲综合一二三区| 一区二区三区四区不卡视频| 自拍偷拍欧美激情| 国产精品欧美久久久久一区二区 | 在线观看三级视频欧美| av亚洲精华国产精华精| 国产福利精品一区| 成人午夜视频在线观看| 国产成人免费视频网站| 国产超碰在线一区| 成人午夜电影久久影院| 99视频在线观看一区三区| 成人黄色电影在线| 91视频免费播放| 91国偷自产一区二区开放时间| 99久久精品一区二区| 日本精品视频一区二区三区| 欧美色老头old∨ideo| 欧美日韩国产综合一区二区| 欧美日韩在线播放一区| 91精品国产品国语在线不卡| 欧美一级日韩免费不卡| 精品国产伦理网| 国产精品久久三区| 亚洲最新视频在线观看| 午夜天堂影视香蕉久久| 极品少妇一区二区三区精品视频| 久久99久久99小草精品免视看| 国产福利电影一区二区三区| av在线播放不卡| 欧美日韩在线播放一区| 欧美va日韩va| 中文欧美字幕免费| 一区二区在线观看免费视频播放| 亚洲午夜一区二区| 激情综合一区二区三区| 成人av免费网站| 精品视频999| 日本一区二区三区四区| 亚洲激情自拍视频| 韩国女主播一区二区三区| 岛国av在线一区| 337p亚洲精品色噜噜噜| 欧美激情一区在线| 亚洲午夜日本在线观看| 国产一区三区三区| 91成人国产精品| 久久精品欧美日韩| 婷婷国产v国产偷v亚洲高清| 国产福利电影一区二区三区| 在线观看日韩高清av| 久久老女人爱爱| 亚洲国产一区二区三区| 国产麻豆日韩欧美久久| 欧美人狂配大交3d怪物一区| 中文字幕免费观看一区| 免费视频一区二区| 欧美自拍偷拍一区| 国产精品人成在线观看免费| 日韩电影在线一区二区| 91丨porny丨中文|