Browse Source

style

cl-refactor
arkpar 10 years ago
parent
commit
e712ade6e2
  1. 2
      mix/qml/html/codeeditor.js
  2. 2
      mix/test/qml/js/TestTutorial.js

2
mix/qml/html/codeeditor.js

@ -126,7 +126,7 @@ highlightExecution = function(start, end) {
executionMark.clear(); executionMark.clear();
if (debugWarning) if (debugWarning)
debugWarning.clear(); debugWarning.clear();
if (start >0 && end > start) { if (start > 0 && end > start) {
executionMark = editor.markText(editor.posFromIndex(start), editor.posFromIndex(end), { className: "CodeMirror-exechighlight" }); executionMark = editor.markText(editor.posFromIndex(start), editor.posFromIndex(end), { className: "CodeMirror-exechighlight" });
editor.scrollIntoView(editor.posFromIndex(start)); editor.scrollIntoView(editor.posFromIndex(start));
} }

2
mix/test/qml/js/TestTutorial.js

@ -52,7 +52,7 @@ function test_tutorial()
transactionDialog.selectFunction("setRating"); transactionDialog.selectFunction("setRating");
clickElement(transactionDialog, 200, 310); clickElement(transactionDialog, 200, 310);
ts.typeString("Titanic", transactionDialog); ts.typeString("Titanic", transactionDialog);
clickElement(transactionDialog, 200, 350); clickElement(transactionDialog, 200, 330);
ts.typeString("2", transactionDialog); ts.typeString("2", transactionDialog);
transactionDialog.acceptAndClose(); transactionDialog.acceptAndClose();
mainApplication.projectModel.stateDialog.acceptAndClose(); mainApplication.projectModel.stateDialog.acceptAndClose();

Loading…
Cancel
Save