mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 00:46:16 -04:00
runIn was a bad idea
This commit is contained in:
parent
27f9906b1e
commit
a4d68b2b25
2 changed files with 0 additions and 32 deletions
|
@ -1,29 +1,4 @@
|
|||
describe("the test helper", function(){
|
||||
describe("the runIn method", function(){
|
||||
it("runs the function in the correct iframe", function(done){
|
||||
this.timeout(5000);
|
||||
|
||||
helper.newPad(function(){
|
||||
var chromeLength = helper.runIn(helper.padChrome$, function(){
|
||||
return $("#editbar").length;
|
||||
});
|
||||
|
||||
var outerLength = helper.runIn(helper.padOuter$, function(){
|
||||
return $("#outerdocbody").length;
|
||||
});
|
||||
|
||||
var innerLength = helper.runIn(helper.padInner$, function(){
|
||||
return $("#innerdocbody").length;
|
||||
});
|
||||
|
||||
expect(chromeLength).to.be(1);
|
||||
expect(outerLength).to.be(1);
|
||||
expect(innerLength).to.be(1);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("the newPad method", function(){
|
||||
xit("doesn't leak memory if you creates iframes over and over again", function(done){
|
||||
this.timeout(100000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue