Beispiel #1
0
        public void smoke_test_javascript_file()
        {
            var file = Embeds.GetFiles().First(x => x.FileName == "testEditor.js");

            file.Contents().ShouldNotBeEmpty();
            file.Folder.ShouldEqual("Controls");
        }
Beispiel #2
0
        private void addJavascriptFiles(HtmlDocument document)
        {
            var scripts = new string[] { JQUERY, STORYTELLER };

            Embeds.WriteFiles();
            var files = Embeds.GetFiles();

            scripts.Each(s =>
            {
                var file = files.First(x => x.FileName == s);
                document.AddJavaScript(file.Contents());
                //document.ReferenceJavaScriptFile(file.FullPath);
            });



            files.Where(x => !scripts.Contains(x.FileName)).Each(file =>
            {
                document.AddJavaScript(file.Contents());
                //document.ReferenceJavaScriptFile(file.FullPath);
            });
        }
Beispiel #3
0
 public void get_javascript_files()
 {
     Embeds.GetFiles().Any().ShouldBeTrue();
 }