diff --git a/vimperator/Donors b/vimperator/Donors index 51b3b9af..9f129171 100644 --- a/vimperator/Donors +++ b/vimperator/Donors @@ -1,4 +1,5 @@ 2009: +* Jonathan Austin * Steven Romanow 2008: diff --git a/vimperator/regressions.js b/vimperator/regressions.js index 0bf605d1..1885a932 100644 --- a/vimperator/regressions.js +++ b/vimperator/regressions.js @@ -18,6 +18,7 @@ var skipTests = [":bmarks", "gg"]; // Put definitions here which might change due to internal liberator refactoring ///////////////////////////////////////////////////////////////////////////////////////// +var doc; // document where we output status messages var multilineOutput = document.getElementById("liberator-multiline-output") var singlelineOutput = document.getElementById("liberator-commandline-command") @@ -31,7 +32,7 @@ var singlelineOutput = document.getElementById("liberator-commandline-command") // A series of Ex commands or mappings, each with a // function checking whether the command succeeded // If the string starts with a ":" it is executed as an Ex command, otherwise as a mapping -// You can also mix commands mappings +// You can also mix commands and mappings let tests = [ { cmds: [":!dir"], verify: function () getMultilineOutput().length > 10 }, @@ -45,6 +46,8 @@ let tests = [ verify: function () getSinglelineOutput() == "test" }, { cmds: [":qmark V http://test.vimperator.org", ":qmarks"], verify: function () getMultilineOutput().indexOf("test.vimperator.org") >= 0 }, + { cmds: [":javascript liberator.echo('test', commandline.FORCE_MULTILINE)"], + verify: function () getMultilineOutput() == "test" }, // { cmds: [":echomsg \"testmsg\""], // verify: function () getOutput() == "testmsg" }, // { cmds: [":echoerr \"testerr\""], @@ -89,15 +92,14 @@ function getBufferPosition() y: win.scrollMaxY ? win.pageYOffset / win.scrollMaxY : 0 } }; - // TODO: need to find a way to wait for page load function getLocation() window.content.document.location.href; -var doc; function echoLine(str, group) { if (!doc) return; + doc.body.appendChild(util.xmlToDom(