private SlimTestContextImpl makeTables(String tableText) throws Exception {
SlimTestContextImpl testContext = new SlimTestContextImpl();
WikiPageUtil.setPageContents(root, tableText);
TableScanner ts = new HtmlTableScanner(root.getHtml());
Table t = ts.getTable(0);
ScenarioTable st = new ScenarioTable(t, "s_id", testContext);
t = ts.getTable(1);
if (t.getCellContents(0,0).equals("script")) {
script = new ScriptTable(t, "id", testContext);
} else {
script = new ScriptTableTest.LocalizedScriptTable(t, "id", testContext);
}
assertions.addAll(st.getAssertions());