Merge branch 'MDL-66378-37' of git://github.com/andrewnicols/moodle into MOODLE_37_STABLE

This commit is contained in:
Adrian Greeve
2019-08-21 09:01:21 +08:00
2 changed files with 4 additions and 2 deletions
@@ -23,6 +23,7 @@ Feature: Converting rubric score to grades
| activity | name | intro | course | idnumber | grade | advancedgradingmethod_submissions |
| assign | Test assignment 1 | Test | C1 | assign1 | <grade> | rubric |
When I log in as "teacher1"
And I change window size to "large"
And I am on "Course 1" course homepage with editing mode on
And I go to "Test assignment 1" advanced grading definition page
And I set the following fields to these values:
+3 -2
View File
@@ -869,8 +869,8 @@ class behat_general extends behat_base {
// this DOM method instead.
$js = <<<EOF
(function() {
var a = document.evaluate("{$prexpath}", document).iterateNext();
var b = document.evaluate("{$postxpath}", document).iterateNext();
var a = document.evaluate("{$prexpath}", document, null, XPathResult.ANY_TYPE, null).iterateNext();
var b = document.evaluate("{$postxpath}", document, null, XPathResult.ANY_TYPE, null).iterateNext();
return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING;
})()
EOF;
@@ -1215,6 +1215,7 @@ EOF;
*
* @throws ExpectationException
* @Then /^I change (window|viewport) size to "(small|medium|large|\d+x\d+)"$/
* @Then /^I change the (window|viewport) size to "(small|medium|large|\d+x\d+)"$/
* @param string $windowsize size of the window (small|medium|large|wxh).
*/
public function i_change_window_size_to($windowviewport, $windowsize) {