function testSetGet(){editor.setCode("It was the best of times.\nIt was the worst of times.");assertEquals("It was the best of times.\nIt was the worst of times.",editor.getCode());editor.setCode("");assertEquals("",editor.getCode())}
function testSetStylesheet(){function b(){links=editor.win.document.getElementsByTagName("link");css=[];for(var c=0,a;a=links[c];c++)a.rel.indexOf("stylesheet")!==-1&&css.push([a.href.substring(a.href.lastIndexOf("/")+1),!a.disabled]);return css}assertEquivalent([],b());editor.setStylesheet("css/jscolors.css");assertEquivalent([["jscolors.css",true]],b());editor.setStylesheet(["css/csscolors.css","css/xmlcolors.css"]);assertEquivalent([["jscolors.css",false],["csscolors.css",true],["xmlcolors.css",
true]],b());editor.setStylesheet([]);assertEquivalent([["jscolors.css",false],["csscolors.css",false],["xmlcolors.css",false]],b())}var tests=["testSetGet","testSetStylesheet"];