From 86d20a95c8a959f5466f9734e93a192178265a20 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 19 Feb 2015 09:18:40 +0800 Subject: [PATCH] Revert "Merge branch 'MDL-49154_27' of git://github.com/timhunt/moodle into MOODLE_27_STABLE" This reverts commit e0312ddb493bb0b2e0500b3460b7f82df84812d0, reversing changes made to 636eb3726c3ff42ec5e2231de65f79553b309113. --- lib/tests/behat/behat_general.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index e56b1c2153a..d8d5264991a 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -382,23 +382,6 @@ class behat_general extends behat_base { $node->click(); } - /** - * Simulate pressing a sequence of keys. - * @When /^I type "(?P(?:[^"]|\\")*)" into the "(?P(?:[^"]|\\")*)" "(?P[^"]*)"$/ - * @param string $keys the keys to press. - * @param string $element Element we look for - * @param string $selectortype The type of what we look for - */ - public function i_type_into_the($keys, $element, $selectortype) { - $node = $this->get_selected_node($selectortype, $element); - $this->ensure_node_is_visible($node); - foreach (str_split($keys) as $key) { - $node->keyDown($key); - $node->keyPress($key); - $node->keyUp($key); - } - } - /** * Drags and drops the specified element to the specified container. This step does not work in all the browsers, consider it experimental. *