On 03/25/2010 07:07 PM, mflorea (SVN) wrote:
Author: mflorea
Date: 2010-03-25 19:07:15 +0100 (Thu, 25 Mar 2010)
New Revision: 27933
Modified:
enterprise/trunk/distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/StandardFeaturesTest.java
enterprise/trunk/distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/framework/AbstractWysiwygTestCase.java
Log:
XWIKI-5036: WYSIWYG editor doesn't display when creating a document named
#"&?\194?\167-_\
Modified:
enterprise/trunk/distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/StandardFeaturesTest.java
===================================================================
---
enterprise/trunk/distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/StandardFeaturesTest.java 2010-03-25
18:06:41 UTC (rev 27932)
+++
enterprise/trunk/distribution-test/wysiwyg-tests/src/test/it/com/xpn/xwiki/it/selenium/StandardFeaturesTest.java 2010-03-25
18:07:15 UTC (rev 27933)
@@ -635,4 +635,21 @@
switchToSource();
assertSourceText("x");
}
+
+ /**
+ * @see XWIKI-5036: WYSIWYG editor doesn't display when creating a document
named #"&§-_\
+ */
+ public void testEditPageWithSpecialSymbolsInName()
+ {
+ clickEditCancelEdition();
+ clickLinkWithLocator("tmCreatePage");
+ waitPage();
All source files should contain only ASCII chars. § is not ASCII, IIRC
it's \u00A7
Fixed. Thanks,
Marius
+ setFieldValue("page",
"#\"&§-_\\");
+ getSelenium().click("//input[@value = 'Create']");
+ waitPage();
+ waitForEditorToLoad();
+ typeText("This is a test");
+ clickEditPreview();
+ assertTextPresent("This is a test");
+ }
}