public JasminePageBuilder() : base() { Title = "Jasmine Spec Runner"; CssReferences.Add("http://pivotal.github.com/jasmine/lib/jasmine.css"); ScriptReferences.Add("http://pivotal.github.com/jasmine/lib/jasmine.js"); ScriptReferences.Add("http://pivotal.github.com/jasmine/lib/jasmine-html.js"); ScriptCode.Add( @" (function() { var jasmineEnv = jasmine.getEnv(); jasmineEnv.updateInterval = 1000; var htmlReporter = new jasmine.HtmlReporter(); jasmineEnv.addReporter(htmlReporter); jasmineEnv.specFilter = function(spec) { return htmlReporter.specFilter(spec); }; var currentWindowOnload = window.onload; window.onload = function() { if (currentWindowOnload) { currentWindowOnload(); } execJasmine(); }; function execJasmine() { jasmineEnv.execute(); } })();"); }
public HtmlPageBuilder(HtmlPageBuilder builder) : this() { ScriptReferences.AddRange(builder.ScriptReferences); ScriptCode.AddRange(builder.ScriptCode); CssReferences.AddRange(builder.CssReferences); CssCode.AddRange(builder.CssCode); Title = builder.Title; BodyContent = builder.BodyContent; HeaderContent = builder.HeaderContent; }
public QUnitPageBuilder() : base() { Title = "Qunit Runner"; CssReferences.Add("http://code.jquery.com/qunit/qunit-1.11.0.css"); ScriptReferences.Add("http://code.jquery.com/qunit/qunit-1.11.0.js"); BodyContent = @" <div id=""qunit""></div> <div id=""qunit-fixture""></div> "; }