Add a unit test to show that bug #49648 no longer occurs
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1139245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bc467bb8c1
commit
23077dfb49
@ -392,4 +392,18 @@ public final class TestBugs extends TestCase {
|
||||
// Good
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Changing text from Ascii to Unicode
|
||||
*/
|
||||
public void test49648() throws Exception {
|
||||
SlideShow ppt = new SlideShow(_slTests.openResourceAsStream("49648.ppt"));
|
||||
for(Slide slide : ppt.getSlides()) {
|
||||
for(TextRun run : slide.getTextRuns()) {
|
||||
String text = run.getRawText();
|
||||
text.replace("{txtTot}", "With \u0123\u1234\u5678 unicode");
|
||||
run.setRawText(text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
BIN
test-data/slideshow/49648.ppt
Normal file
BIN
test-data/slideshow/49648.ppt
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user