mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
recover stability but still have a server msg
This commit is contained in:
parent
7708460faf
commit
503fc13fda
3 changed files with 1 additions and 3 deletions
|
@ -416,7 +416,6 @@ exports.setHTML = function(padID, html, callback)
|
|||
}else{
|
||||
//update the clients on the pad
|
||||
padMessageHandler.updatePadClients(pad, callback);
|
||||
callback();
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
|
|
@ -22,7 +22,6 @@ var cheerio = require("cheerio");
|
|||
function setPadHTML(pad, html, callback)
|
||||
{
|
||||
var apiLogger = log4js.getLogger("ImportHtml");
|
||||
console.warn("setting padhtml");
|
||||
var $ = cheerio.load(html);
|
||||
// Appends a line break, used by Etherpad to ensure a caret is available
|
||||
// below the last line of an import
|
||||
|
|
|
@ -294,7 +294,7 @@ describe('setHTML', function(){
|
|||
|
||||
describe('setHTML', function(){
|
||||
it('Sets the HTML of a Pad attempting to pass ugly HTML', function(done) {
|
||||
var html = "<!DOCTYPE html><html><head></head><body><ul><li>Hello World!</li><li>foo</li></ul></body></html>";
|
||||
var html = "<!DOCTYPE html><html><head></head><body><ul><li>UL1</li><ul><li>UL2</li></ul></ul></body></html>";
|
||||
api.get(endPoint('setHTML')+"&padID=test&html="+html)
|
||||
.expect(function(res){
|
||||
if(res.body.code !== 0) throw new Error("List HTML cant be imported")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue