Changes between Initial Version and Version 1 of Ticket #9661, comment 14


Ignore:
Timestamp:
Apr 29, 2014, 10:49:49 AM (10 years ago)
Author:
Piotrek Koszuliński
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9661, comment 14

    initial v1  
    442. Explain on an example what is "JavaScript code in a href attribute".
    553. You can try to write a tests for this. The problem with validator is that it will call `alert()` right away. AFAIK, that will cause automatic test fail in YUI Test. The tests should:
    6 
    7   1. Create editor bot with the default configuration, open link dialog and check if alert is executed (if validator fails) if you entered JS link. You can use assert.throwsError to verify that alert was executed what, thanks to YUI Test, should throw an error.
    8   2. Create second editor bot with the option set to true and verify the behaviour.
     6    1. Create editor bot with the default configuration, open link dialog and check if alert is executed (if validator fails) if you entered JS link. You can use assert.throwsError to verify that alert was executed what, thanks to YUI Test, should throw an error.
     7    2. Create second editor bot with the option set to true and verify the behaviour.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy