kopia lustrzana https://github.com/c9/core
fix tree test
rodzic
945322734b
commit
1a00ab0140
|
@ -886,7 +886,7 @@ define(function(require, exports, module) {
|
|||
|
||||
if (!scrollTimer) {
|
||||
scrollTimer = setTimeout(function() {
|
||||
settings.set("state/projecttree/@scrollpos",
|
||||
tree && settings.set("state/projecttree/@scrollpos",
|
||||
tree.provider.getScrollTop());
|
||||
scrollTimer = null;
|
||||
}, 1000);
|
||||
|
@ -902,7 +902,7 @@ define(function(require, exports, module) {
|
|||
emit.sticky("ready");
|
||||
};
|
||||
|
||||
if (c9.connected) { //was c9.inited
|
||||
if (c9.connected) { // was c9.inited
|
||||
setTimeout(function() {
|
||||
loadProjectTree(null, done);
|
||||
}, 200);
|
||||
|
|
|
@ -104,16 +104,12 @@ require(["lib/architect/architect", "lib/chai/chai", "/vfs-root"],
|
|||
|
||||
describe('tree', function() {
|
||||
before(function(done) {
|
||||
tree.getElement("winFilesViewer", function(win) {
|
||||
win.$ext.style.position = "fixed";
|
||||
win.$ext.style.top = "75px";
|
||||
win.$ext.style.right = "20px";
|
||||
win.$ext.style.bottom = "20px";
|
||||
win.$ext.style.width = "200px";
|
||||
win.show();
|
||||
tree.getElement("container", function(container_) {
|
||||
container = container_;
|
||||
container.$ext.style.height = "500px";
|
||||
container.$ext.style.width = "200px";
|
||||
tree.tree.resize();
|
||||
|
||||
container = tree.getElement("container");
|
||||
|
||||
done();
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue