FileInputStream is = new FileInputStream(new File(cwd, "38256.ppt"));\r
SlideShow ppt = new SlideShow(is);\r
is.close();\r
-\r
+ \r
assertTrue("No Exceptions while reading file", true);\r
\r
Slide[] slide = ppt.getSlides();\r
assertEquals(4, runs.length);\r
\r
HashSet txt = new HashSet();\r
- txt.add("\93HAPPY BIRTHDAY SCOTT\94");\r
+ txt.add("\u201CHAPPY BIRTHDAY SCOTT\u201D");\r
txt.add("Have a HAPPY DAY");\r
- txt.add("PS Nobody is allowed to hassle Scott TODAY\85");\r
- txt.add("Drinks will be in the Boardroom at 5pm today to celebrate Scott\92s B\92Day\85 See you all there!");\r
+ txt.add("PS Nobody is allowed to hassle Scott TODAY\u2026");\r
+ txt.add("Drinks will be in the Boardroom at 5pm today to celebrate Scott\u2019s B\u2019Day\u2026 See you all there!");\r
\r
for (int i = 0; i < runs.length; i++) {\r
String text = runs[i].getRawText();\r
- assertTrue(txt.contains(text));\r
+ assertTrue(text, txt.contains(text));\r
}\r
\r
}\r
assertEquals(2, txt.length);
assertEquals(
- "I\92m a text box\r" +
+ "I\u2019m a text box\r" +
"With bullets\r" +
"That follow the design pattern\r" +
"From the slide master", txt[0].getRawText());
assertEquals('\u2022', rt.getBulletChar());
assertEquals(
- "I\92m a text box with user-defined\r" +
+ "I\u2019m a text box with user-defined\r" +
"bullet character", txt[1].getRawText());
assertEquals(1, txt[1].getRichTextRuns().length);
rt = txt[1].getRichTextRuns()[0];