scrawl.js 406 B

123456789101112131415161718
  1. /**
  2. * Created with JetBrains PhpStorm.
  3. * User: luqiong
  4. * Date: 12-11-13
  5. * Time: 下午2:13
  6. * To change this template use File | Settings | File Templates.
  7. */
  8. module( 'plugins.scrawl' );
  9. test( '检查高亮', function() {
  10. var editor = te.obj[0];
  11. editor.focus();
  12. equal( editor.queryCommandState( 'scrawl' ), ( browser.ie && browser.version <= 8 ) ? -1:0, 'check scrawl state' );
  13. } );