JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0
[ckeditor.git] / _source / tests / core / bootstrap.html
diff --git a/_source/tests/core/bootstrap.html b/_source/tests/core/bootstrap.html
new file mode 100644 (file)
index 0000000..a0841a6
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+       <title>CKEDITOR.bootstrap</title>\r
+       <link rel="stylesheet" type="text/css" href="../test.css" />\r
+       <script type="text/javascript" src="../../ckeditor_basic.js"></script>\r
+       <script type="text/javascript" src="../test.js"></script>\r
+       <script type="text/javascript">\r
+       //<![CDATA[\r
+\r
+var before_loadFullCore = CKEDITOR.status;\r
+\r
+var isLoaded;\r
+\r
+CKEDITOR.on( 'loaded', function()\r
+       {\r
+               isLoaded = true;\r
+       });\r
+\r
+\r
+CKEDITOR.loadFullCore();\r
+\r
+       //]]>\r
+       </script>\r
+       <script type="text/javascript">\r
+       //<![CDATA[\r
+\r
+CKEDITOR.test.addTestCase( (function()\r
+{\r
+       // Local reference to the "assert" object.\r
+       var assert = CKEDITOR.test.assert;\r
+\r
+       return {\r
+               test_status1 : function()\r
+               {\r
+                       assert.areSame( 'basic_loaded', before_loadFullCore );\r
+               },\r
+\r
+               test_status2 : function()\r
+               {\r
+                       // In IE, CKEDITOR.on( 'loaded' ) will be called immediately if the scripts are cached.\r
+                       if ( isLoaded )\r
+                               return;\r
+\r
+                       var testCase = this;\r
+                       CKEDITOR.on( 'loaded', function()\r
+                               {\r
+                                       testCase.resume( function()\r
+                                               {\r
+                                                       assert.areSame( 'loaded', CKEDITOR.status );\r
+                                               });\r
+                               });\r
+\r
+                       this.wait();\r
+               },\r
+\r
+               name : document.title\r
+       };\r
+})() );\r
+\r
+       //]]>\r
+       </script>\r
+</head>\r
+<body>\r
+</body>\r
+</html>\r