add protractor based coreflow test for the ide

pull/428/head
nightwing 2017-05-20 16:06:14 +04:00
rodzic b1eefcaf90
commit 9544cf40d5
3 zmienionych plików z 10 dodań i 11 usunięć

Wyświetl plik

@ -1058,7 +1058,7 @@ var lastSaveStarts = {};
// Used to block concurrent edit updates while the document is being processed // Used to block concurrent edit updates while the document is being processed
// //
// { <key or document_id> : [{Function}] } // { <key or document_id> : [{Function}] }
var locks = {}; var locks = Object.create(null);
function lock(key, callback) { function lock(key, callback) {
if (!locks[key]) { if (!locks[key]) {
locks[key] = []; locks[key] = [];

Wyświetl plik

@ -1,3 +1,4 @@
/*global apf*/
define(function(require, exports, module) { define(function(require, exports, module) {
main.consumes = [ main.consumes = [
"Panel", "ui", "menus", "panels", "commands", "tabManager", "layout", "Panel", "ui", "menus", "panels", "commands", "tabManager", "layout",
@ -156,16 +157,14 @@ define(function(require, exports, module) {
// Focus the input field // Focus the input field
setTimeout(function() { setTimeout(function() {
txtFilter.focus(); txtFilter.focus();
}, 10); });
setTimeout(function() { // Assign the dataprovider
// Assign the dataprovider tree.setDataProvider(ldSearch);
tree.setDataProvider(ldSearch); tree.selection.$wrapAround = true;
tree.selection.$wrapAround = true; var val = settings.get("state/commandPanel/@value");
var val = settings.get("state/commandPanel/@value"); if (val)
if (val) txtFilter.ace.setValue(val);
txtFilter.ace.setValue(val);
}, 200);
} }
/***** Methods *****/ /***** Methods *****/

Wyświetl plik

@ -166,7 +166,7 @@ define(function(require, exports, module) {
hotkey: "commands.openterminal", hotkey: "commands.openterminal",
onclick: function(e) { onclick: function(e) {
tabs.open({ tabs.open({
active: true, focus: true,
pane: this.parentNode.pane, pane: this.parentNode.pane,
editorType: "terminal" editorType: "terminal"
}, function() {}); }, function() {});