michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: function test() { michael@0: gURLBar.focus(); michael@0: gURLBar.inputField.value = "https://example.com/"; michael@0: gURLBar.selectionStart = 4; michael@0: gURLBar.selectionEnd = 5; michael@0: goDoCommand("cmd_cut"); michael@0: is(gURLBar.inputField.value, "http://example.com/", "location bar value after cutting 's' from https"); michael@0: gURLBar.handleRevert(); michael@0: }