SWTBotToolbarButton onlineButton = markdownViewBot.getOnlineButton();
SWTBotToolbarButton reloadButton = markdownViewBot.getReloadButton();
ProjectBot project = ProjectBot.createSimpleProject();
ProjectFileBot fileBot = project.newFile("file1.md");
EditorBot editorBot = EditorBot.findByName("file1.md");
String textMd1 = "sample text 1, timestamp: " + System.currentTimeMillis() + ".";
editorBot.typeText(textMd1 + "\r");
editorBot.save();
onlineButton.click(); // set offline
String textMd2 = "sample text 2, timestamp: " + System.currentTimeMillis() + ".";
editorBot.typeText(textMd2 + "\r");
editorBot.save();
SWTUtils.sleep(2000);
File fileMd = fileBot.toFile();
File fileHt = new File(fileMd.getParentFile(), ".file1.md.html");
assertThat("not found: " + fileHt, fileHt.exists(), is(true));
assertThat(markdownViewBot.getTitle(), is("*file1"));
String textHt1 = IOUtils.toString(new FileInputStream(fileHt));