Add typing test in the code app

This commit is contained in:
yflory
2018-11-22 14:45:12 +01:00
parent 015449832c
commit 13d6579861
3 changed files with 33 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ define([
'/common/common-hash.js',
'/common/modes.js',
'/common/visible.js',
'/common/TypingTests.js',
'/customize/messages.js',
'cm/lib/codemirror',
@@ -51,6 +52,7 @@ define([
Hash,
Modes,
Visible,
TypingTest,
Messages,
CMeditor)
{
@@ -345,6 +347,12 @@ define([
editor.on('change', framework.localChange);
framework.start();
window.easyTest = function () {
var test = TypingTest.testCode(editor);
return test;
};
};
var getThumbnailContainer = function () {