summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2013-05-16 18:07:20 (EDT)
committerTomasz Zarna2013-05-17 13:30:01 (EDT)
commitb67eda69c50dec660082dd9414fe5131b7e3feba (patch)
tree5b13fc7606ddbfbad48bd9d2f067165fa487172c
parent89c9364e1614bc4cd953c87b7d157fee1ec73a2a (diff)
downloadorg.eclipse.mylyn.docs-b67eda69c50dec660082dd9414fe5131b7e3feba.zip
org.eclipse.mylyn.docs-b67eda69c50dec660082dd9414fe5131b7e3feba.tar.gz
org.eclipse.mylyn.docs-b67eda69c50dec660082dd9414fe5131b7e3feba.tar.bz2
408361: fix HtmlDocumentBuilderTest.testRelativeUrlWithFileBase()refs/changes/06/12906/2
Bug: 408361 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=408361 Change-Id: I3ba076acb65207b860fb5c6098eaa9f5d305aca2
-rw-r--r--org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilderTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilderTest.java b/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilderTest.java
index 4f007a4..fbb1ea6 100644
--- a/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilderTest.java
+++ b/org.eclipse.mylyn.wikitext.tests/src/org/eclipse/mylyn/wikitext/core/parser/builder/HtmlDocumentBuilderTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 David Green and others.
+ * Copyright (c) 2007, 2013 David Green 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
@@ -97,8 +97,8 @@ public class HtmlDocumentBuilderTest extends TestCase {
parser.parse("\"An URL\":foo/bar.html");
String html = out.toString();
TestUtil.println("HTML: \n" + html);
- assertTrue(html.contains("<a href=\"file:/base/2/with%20space/foo/bar.html\">An URL</a>")
- || html.contains("<a href=\"file:/C:/base/2/with%20space/foo/bar.html\">An URL</a>"));
+ Pattern pattern = Pattern.compile("<a href=\"file:(/[A-Z]{1}:)?/base/2/with%20space/foo/bar.html\">An URL</a>");
+ assertTrue(pattern.matcher(html).find());
}
public void testNoGratuitousWhitespace() {