Skip to content

Commit

Permalink
Merge pull request #648 from oat-sa/release-5.39.1
Browse files Browse the repository at this point in the history
Release 5.39.1
  • Loading branch information
jsconan authored Nov 23, 2016
2 parents be35bc7 + 09d3ff3 commit 42c35ad
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion manifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'label' => 'QTI test model',
'description' => 'TAO QTI test implementation',
'license' => 'GPL-2.0',
'version' => '5.38.4',
'version' => '5.39.1',
'author' => 'Open Assessment Technologies',
'requires' => array(
'taoTests' => '>=3.7.0',
Expand Down
4 changes: 2 additions & 2 deletions models/classes/runner/QtiRunnerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function init(RunnerServiceContext $context)
}

$session->initItemTimer();
if (TestRunnerUtils::isTimeout($session) === false) {
if ($session->isTimeout() === false) {
TestRunnerUtils::beginCandidateInteraction($session);
}
} else {
Expand Down Expand Up @@ -1133,7 +1133,7 @@ protected function continueInteraction(RunnerServiceContext $context)
/* @var TestSession $session */
$session = $context->getTestSession();

if ($session->isRunning() === true && TestRunnerUtils::isTimeout($session) === false) {
if ($session->isRunning() === true && $session->isTimeout() === false) {
TestRunnerUtils::beginCandidateInteraction($session);
$continue = true;
}
Expand Down
3 changes: 2 additions & 1 deletion models/classes/runner/time/QtiTimeConstraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ public function getMaximumRemainingTime()
// take care of the already consumed extra time under the current constraint
// and append the full remaining extra time
// the total must correspond to the already elapsed time plus the remaining time
$extraTime = $this->timer->getRemainingExtraTime() + $this->timer->getConsumedExtraTime($this->getSource()->getIdentifier());
$currentExtraTime = $this->timer->getRemainingExtraTime() + $this->timer->getConsumedExtraTime($this->getSource()->getIdentifier());
$extraTime = min($this->timer->getExtraTime(), $currentExtraTime);
$remaining->add(new QtiDuration('PT' . $extraTime . 'S'));
}
$remaining->sub($this->getDuration());
Expand Down
2 changes: 1 addition & 1 deletion scripts/update/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,6 @@ public function update($initialVersion) {
$this->setVersion('5.38.2');
}

$this->skip('5.38.2', '5.38.4');
$this->skip('5.38.2', '5.39.1');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define([
'i18n',
'ui/hider',
'taoTests/runner/plugin',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function($, __, hider, pluginFactory, buttonTpl) {
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/navigation/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ define([
'taoQtiTest/runner/helpers/map',
'util/shortcut',
'util/namespace',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, pluginFactory, nextWarningHelper, messages, mapHelper, shortcut, namespaceHelper, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/navigation/nextSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define([
'ui/hider',
'taoTests/runner/plugin',
'taoQtiTest/runner/helpers/messages',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, pluginFactory, messages, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/navigation/previous.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ define([
'taoTests/runner/plugin',
'util/shortcut',
'util/namespace',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, pluginFactory, shortcut, namespaceHelper, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/navigation/review/review.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ define([
'taoTests/runner/plugin',
'taoQtiTest/runner/helpers/map',
'taoQtiTest/runner/plugins/navigation/review/navigator',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, shortcut, namespaceHelper, pluginFactory, mapHelper, navigatorFactory, buttonTpl) {
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/navigation/skip.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define([
'ui/hider',
'taoTests/runner/plugin',
'taoQtiTest/runner/helpers/messages',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, __, hider, pluginFactory, messages, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/tools/areaMasking/areaMasking.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ define([
'ui/hider',
'taoTests/runner/plugin',
'taoQtiTest/runner/plugins/tools/areaMasking/mask',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, pluginFactory, maskComponent, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/tools/calculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define([
'util/shortcut',
'util/namespace',
'taoTests/runner/plugin',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, _, __, hider, calculatorFactory, shortcut, namespaceHelper, pluginFactory, buttonTpl){
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/tools/comment/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ define([
'ui/hider',
'util/shortcut',
'util/namespace',
'tpl!taoQtiTest/runner/plugins/navigation/button',
'tpl!taoQtiTest/runner/plugins/templates/button',
'tpl!taoQtiTest/runner/plugins/tools/comment/comment'
], function ($, __, pluginFactory, hider, shortcut, namespaceHelper, buttonTpl, commentTpl) {
'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ define([
'ui/themes',
'util/shortcut',
'util/namespace',
'tpl!taoQtiTest/runner/plugins/navigation/button',
'tpl!taoQtiTest/runner/plugins/templates/button',
'tpl!taoQtiTest/runner/plugins/tools/itemThemeSwitcher/itemThemeSwitcher'
], function ($, _, __, pluginFactory, hider, themeHandler, shortcut, namespaceHelper, buttonTpl, itemThemeSwitcherTpl) {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion views/js/runner/plugins/tools/zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define([
'util/shortcut',
'util/namespace',
'taoTests/runner/plugin',
'tpl!taoQtiTest/runner/plugins/navigation/button'
'tpl!taoQtiTest/runner/plugins/templates/button'
], function ($, __, hider, transformer, shortcut, namespaceHelper, pluginFactory, buttonTpl){
'use strict';

Expand Down

0 comments on commit 42c35ad

Please sign in to comment.