Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 81991 Details for
Bug 208600
HtmlStreamTokenizer.unescape..() don't properly handle entities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
test case showing the issue
clipboard.txt (text/plain), 1.88 KB, created by
Eugene Kuleshov
on 2007-11-02 14:06:57 EDT
(
hide
)
Description:
test case showing the issue
Filename:
MIME Type:
Creator:
Eugene Kuleshov
Created:
2007-11-02 14:06:57 EDT
Size:
1.88 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.tests >Index: src/org/eclipse/mylyn/web/core/HtmlStreamTokenizerTest.java >=================================================================== >RCS file: src/org/eclipse/mylyn/web/core/HtmlStreamTokenizerTest.java >diff -N src/org/eclipse/mylyn/web/core/HtmlStreamTokenizerTest.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/mylyn/web/core/HtmlStreamTokenizerTest.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,42 @@ >+/******************************************************************************* >+ * Copyright (c) 2004, 2007 Mylyn project committers and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ *******************************************************************************/ >+ >+package org.eclipse.mylyn.web.core; >+ >+import static org.eclipse.mylyn.web.core.HtmlStreamTokenizer.unescape; >+ >+import junit.framework.TestCase; >+ >+/** >+ * @author Eugene Kuleshov >+ */ >+public class HtmlStreamTokenizerTest extends TestCase { >+ >+ public void testUnescapeString() { >+ assertEquals("A quote \"", unescape("A quote "")); >+ >+ assertEquals("A quote \"\" doubled", unescape("A quote "" doubled")); >+ >+ assertEquals("A quote \"", unescape("A quote "")); >+ >+ assertEquals("A quote " ;", unescape("A quote " ;")); >+ >+ assertEquals("A quote & quot;", unescape("A quote & quot;")); >+ >+ assertEquals("foo & boo", unescape("foo & boo")); >+ >+ assertEquals("foo&boo poo", unescape("foo&boo poo")); >+ >+ assertEquals("foo&boo ;poo", unescape("foo&boo ;poo")); >+ >+ assertEquals("foo&boo;poo", unescape("foo&boo;poo")); >+ >+ assertEquals(" ", unescape(" ")); >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 208600
: 81991 |
81992
|
86742