JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0
[ckeditor.git] / _source / tests / core / plugins.html
diff --git a/_source/tests/core/plugins.html b/_source/tests/core/plugins.html
new file mode 100644 (file)
index 0000000..24260d8
--- /dev/null
@@ -0,0 +1,45 @@
+<!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.plugins</title>\r
+       <link rel="stylesheet" type="text/css" href="../test.css" />\r
+       <script type="text/javascript" src="../../ckeditor.js"></script>\r
+       <script type="text/javascript" src="../test.js"></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
+\r
+               /**\r
+                * Test loading self defined external plugin file paths.\r
+                */\r
+               test_addExternal : function()\r
+               {\r
+                       var path = '_tests/';\r
+                       CKEDITOR.plugins.addExternal( 'myplugin',\r
+                       path + 'core/plugins/myplugins/sample/', 'my_plugin.js' );\r
+\r
+                       CKEDITOR.plugins.load( 'myplugin', function(){\r
+                               this.resume( function(){\r
+\r
+                                       assert.isTrue( CKEDITOR.plugins.get( 'myplugin' ).definition );\r
+                               } );\r
+                       }, this );\r
+                       this.wait();\r
+               },\r
+\r
+               name : document.title\r
+       };\r
+})() );\r
+\r
+       //]]>\r
+       </script>\r
+</head>\r
+<body>\r
+</body>\r
+</html>\r