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