~ubuntu-branches/ubuntu/trusty/horizon/trusty-proposed

« back to all changes in this revision

Viewing changes to horizon/static/horizon/tests/messages.js

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-12-05 14:39:15 UTC
  • mto: This revision was merged to the branch mainline in revision 61.
  • Revision ID: package-import@ubuntu.com-20131205143915-5u8q3kdxdw8e7maz
Tags: upstream-2014.1~b1
ImportĀ upstreamĀ versionĀ 2014.1~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    });
28
28
 
29
29
    test("Alert With HTML Tag", function () {
30
 
        safe_string = "A safe message <a>here</a>!"
 
30
        safe_string = "A safe message <a>here</a>!";
31
31
        message = horizon.alert("success", safe_string, "safe");
32
32
        ok(message, "Create a message with extra tag.");
33
33
        ok((message.html().indexOf(safe_string ) != -1), 'Verify the message with HTML tag was not escaped.');