Skip to content

Commit c4bd002

Browse files
committed
fix pipeline errors
1 parent 8217b9a commit c4bd002

15 files changed

+52
-37
lines changed

report/statistics/help/statistics_help.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
BODY {
2-
color: #555555;
3-
font-family: verdana,Arial,Helvetica,sans;
1+
body {
2+
color: #555;
3+
font-family: verdana, Arial, Helvetica, sans;
44
font-size: 14px;
55
}
66

styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ table.offlinequizreviewsummary td.cell {padding: 1px 1em 1px 0.5em;text-align: l
413413
background: -webkit-radial-gradient(center, ellipse cover, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.5) 100%);
414414
background: -o-radial-gradient(center, ellipse cover, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.5) 100%);
415415
background: -ms-radial-gradient(center, ellipse cover, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.5) 100%);
416-
: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.5) 100%);
416+
background: radial-gradient(ellipse at center, rgba(0,0,0,0.65) 0%,rgba(0,0,0,0.5) 100%);
417417
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a6000000', endColorstr='#80000000',GradientType=1 );
418418
width: 100%;
419419
height: 100%;

tests/behat/adminsetting_decimalpoints.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
3131
And I follow "Test offline quiz name"
3232
And I navigate to "Edit settings" in current page administration
3333
And I expand all fieldsets
34-
Then the field "Decimal places" matches value "3"
34+
Then the field "Decimal places" matches value "3"

tests/behat/adminsetting_greyvalue.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
3131
And I follow "Test offline quiz name"
3232
And I navigate to "Edit settings" in current page administration
3333
And I expand all fieldsets
34-
Then the field "White value of paper" matches value "Dark grey"
34+
Then the field "White value of paper" matches value "Dark grey"

tests/behat/adminsetting_shufflequestions.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
3131
And I follow "Test offline quiz name"
3232
And I navigate to "Edit settings" in current page administration
3333
And I expand all fieldsets
34-
Then the field "Shuffle questions" matches value "Yes"
34+
Then the field "Shuffle questions" matches value "Yes"

tests/behat/adminsetting_shufflewithinquestions.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
3131
And I follow "Test offline quiz name"
3232
And I navigate to "Edit settings" in current page administration
3333
And I expand all fieldsets
34-
Then the field "Shuffle within questions" matches value "Yes"
34+
Then the field "Shuffle within questions" matches value "Yes"

tests/behat/adminsetting_studycodefield.feature

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: Within a moodle instance, an administrator should be able to set the va
2020
Scenario: Switch as an admin to the adminsettings of the module offlinequiz and change the value of "Print study code field on question sheet". Then login as a teacher and add a new offline quiz to a course and check whether the default value has changed.
2121
Given I log in as "admin"
2222
And I navigate to "Plugins > Activity modules > Offline Quiz" in site administration
23-
And I set the field "Print study code field on question sheet" to "1"
23+
And I set the field "Print study code field on question sheet" to "1"
2424
And I press "Save changes"
2525
And I log out
2626
And I log in as "teacher1"
@@ -33,3 +33,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
3333
And I navigate to "Edit settings" in current page administration
3434
And I expand all fieldsets
3535
Then the field "Print study code field on question sheet" matches value "1"
36+

tests/behat/adminsetting_useridentification_wrongsyntax.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Feature: Within a moodle instance, an administrator should be able to set the va
88
And I press "Save changes"
99
Then I should see "Invalid formula for user identification"
1010
And I navigate to "Plugins > Activity modules > Offline Quiz" in site administration
11-
Then the field "User identification" matches value "[7]=idnumber"
11+
Then the field "User identification" matches value "[7]=idnumber"

tests/behat/createforms_latex.feature

+1
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Feature: Within a moodle instance, a teacher should be able to create the questi
4141
Then I should see "Question form for group A (LATEX)"
4242
Then I should see "Answer form for group A"
4343
Then I should see "Correction form for group A"
44+

tests/behat/createforms_pdf.feature

+1
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
4040
Then I should see "Question form for group A"
4141
Then I should see "Answer form for group A"
4242
Then I should see "Correction form for group A"
43+

tests/behat/instance_create.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Feature: In a course, a teacher should be able to add a new offlinequiz
2424
| Offline quiz name | Add an offlinequiz to the current course |
2525
| Description | Add an offlinequiz to the current course (Description) |
2626
And I follow "Add an offlinequiz to the current course"
27-
Then I should see "Add an offlinequiz to the current course (Description)"
27+
Then I should see "Add an offlinequiz to the current course (Description)"

tests/behat/instance_create_requireddescription.feature

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Feature: Within a moodle instance, an administrator should be able to set the fi
2929
And I turn editing mode on
3030
When I add a "Offline Quiz" to section "2" and I fill the form with:
3131
| Offline quiz name | Add an offlinequiz to the current course |
32-
Then I should see "- Required"
32+
Then I should see "- Required"

tests/behat/instance_setting_numberofgroups.feature

+18-17
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
2929
And I add a "Offline Quiz" to section "1" and I fill the form with:
3030
| Offline quiz name | Add an offline quiz and multiple choice questions to create files for 6 groups |
3131
| Description | Add an offline quiz and multiple choice questions to create files for 6 groups |
32-
| Number of groups | 6 |
32+
| Number of groups | 6 |
3333
And I follow "Add an offline quiz and multiple choice questions to create files for 6 groups"
3434
And I navigate to "Group Questions" in current page administration
3535
And I open the "last" add to quiz menu
@@ -70,20 +70,21 @@ Feature: Within a moodle instance, a teacher should be able to create all forms
7070
And I navigate to "Create forms" in current page administration
7171
And I follow "Download forms"
7272
Then I should see "Question form for group A"
73-
Then I should see "Question form for group B"
74-
Then I should see "Question form for group C"
75-
Then I should see "Question form for group D"
76-
Then I should see "Question form for group E"
77-
Then I should see "Question form for group F"
78-
Then I should see "Answer form for group A"
79-
Then I should see "Answer form for group B"
80-
Then I should see "Answer form for group C"
81-
Then I should see "Answer form for group D"
82-
Then I should see "Answer form for group E"
83-
Then I should see "Answer form for group F"
73+
Then I should see "Question form for group B"
74+
Then I should see "Question form for group C"
75+
Then I should see "Question form for group D"
76+
Then I should see "Question form for group E"
77+
Then I should see "Question form for group F"
78+
Then I should see "Answer form for group A"
79+
Then I should see "Answer form for group B"
80+
Then I should see "Answer form for group C"
81+
Then I should see "Answer form for group D"
82+
Then I should see "Answer form for group E"
83+
Then I should see "Answer form for group F"
8484
Then I should see "Correction form for group A"
85-
Then I should see "Correction form for group B"
86-
Then I should see "Correction form for group C"
87-
Then I should see "Correction form for group D"
88-
Then I should see "Correction form for group E"
89-
Then I should see "Correction form for group F"
85+
Then I should see "Correction form for group B"
86+
Then I should see "Correction form for group C"
87+
Then I should see "Correction form for group D"
88+
Then I should see "Correction form for group E"
89+
Then I should see "Correction form for group F"
90+

yui/src/dragdrop/js/section.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,13 @@ Y.extend(DRAGSECTION, M.core.dragdrop, {
9595
// Get our drag object.
9696
var drag = e.target;
9797
// Creat a dummy structure of the outer elemnents for clean styles application.
98-
var containernode = Y.Node.create('<' + M.mod_offlinequiz.edit.get_containernode() + '></' + M.mod_offlinequiz.edit.get_containernode() + '>');
98+
var containernode = Y.Node.create(
99+
'<' + M.mod_offlinequiz.edit.get_containernode() +
100+
'></' + M.mod_offlinequiz.edit.get_containernode() + '>');
99101
containernode.addClass(M.mod_offlinequiz.edit.get_containerclass());
100-
var sectionnode = Y.Node.create('<' + M.mod_offlinequiz.edit.get_sectionwrappernode() + '></' + M.mod_offlinequiz.edit.get_sectionwrappernode() + '>');
102+
var sectionnode = Y.Node.create(
103+
'<' + M.mod_offlinequiz.edit.get_sectionwrappernode() +
104+
'></' + M.mod_offlinequiz.edit.get_sectionwrappernode() + '>');
101105
sectionnode.addClass( M.mod_offlinequiz.edit.get_sectionwrapperclass());
102106
sectionnode.setStyle('margin', 0);
103107
sectionnode.setContent(drag.get('node').get('innerHTML'));
@@ -134,7 +138,9 @@ Y.extend(DRAGSECTION, M.core.dragdrop, {
134138
loopend = dropnodeindex;
135139

136140
if (dragnodeid === dropnodeindex) {
137-
Y.log("Skipping move - same location moving " + dragnodeid + " to " + dropnodeindex, 'debug', 'moodle-mod_offlinequiz-dragdrop');
141+
Y.log("Skipping move - same location moving " +
142+
dragnodeid + " to " + dropnodeindex,
143+
'debug', 'moodle-mod_offlinequiz-dragdrop');
138144
return;
139145
}
140146

yui/src/offlinequizbase/js/offlinequizbase.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ M.mod_offlinequiz.edit.get_section_selector = function() {
155155
if (config.section_node && config.section_class) {
156156
return config.section_node + '.' + config.section_class;
157157
}
158-
Y.log('section_node and section_class are not defined in M.mod_offlinequiz.edit.get_config', 'warn', 'moodle-mod_offlinequiz-offlinequizbase');
158+
Y.log('section_node and section_class are not defined in M.mod_offlinequiz.edit.get_config',
159+
'warn', 'moodle-mod_offlinequiz-offlinequizbase');
159160
return null;
160161
};
161162

@@ -185,7 +186,8 @@ M.mod_offlinequiz.edit.get_containernode = function() {
185186
if (config.container_node) {
186187
return config.container_node;
187188
} else {
188-
Y.log('container_node is not defined in M.mod_offlinequiz.edit.get_config', 'warn', 'moodle-mod_offlinequiz-offlinequizbase');
189+
Y.log('container_node is not defined in M.mod_offlinequiz.edit.get_config',
190+
'warn', 'moodle-mod_offlinequiz-offlinequizbase');
189191
}
190192
};
191193

@@ -199,7 +201,8 @@ M.mod_offlinequiz.edit.get_containerclass = function() {
199201
if (config.container_class) {
200202
return config.container_class;
201203
} else {
202-
Y.log('container_class is not defined in M.mod_offlinequiz.edit.get_config', 'warn', 'moodle-mod_offlinequiz-offlinequizbase');
204+
Y.log('container_class is not defined in M.mod_offlinequiz.edit.get_config',
205+
'warn', 'moodle-mod_offlinequiz-offlinequizbase');
203206
}
204207
};
205208

@@ -241,7 +244,8 @@ M.mod_offlinequiz.edit.get_sectionnode = function() {
241244
if (config.section_node) {
242245
return config.section_node;
243246
} else {
244-
Y.log('section_node is not defined in M.mod_offlinequiz.edit.get_config', 'warn', 'moodle-mod_offlinequiz-offlinequizbase');
247+
Y.log('section_node is not defined in M.mod_offlinequiz.edit.get_config',
248+
'warn', 'moodle-mod_offlinequiz-offlinequizbase');
245249
}
246250
};
247251

@@ -255,6 +259,7 @@ M.mod_offlinequiz.edit.get_sectionclass = function() {
255259
if (config.section_class) {
256260
return config.section_class;
257261
} else {
258-
Y.log('section_class is not defined in M.mod_offlinequiz.edit.get_config', 'warn', 'moodle-mod_offlinequiz-offlinequizbase');
262+
Y.log('section_class is not defined in M.mod_offlinequiz.edit.get_config',
263+
'warn', 'moodle-mod_offlinequiz-offlinequizbase');
259264
}
260265
};

0 commit comments

Comments
 (0)