/*global buster, assert, jQuery, gts*/ buster.testCase("Clone URL selection", { setUp: function () { /*:DOC element =
*/ this.input = this.element.getElementsByTagName("input")[0]; this.buttons = this.element.getElementsByTagName("a"); }, "copies git:// href to input": function () { gts.cloneUrlSelection.select(this.element, this.buttons[0]); assert.equals(this.input.value, "git://gitorious.org/gitorious/mainline.git"); }, "copies ssh:// href to input": function () { gts.cloneUrlSelection.select(this.element, this.buttons[2]); assert.equals(this.input.value, "git@gitorious.org:gitorious/mainline.git"); } });