Changeset 1898 for trunk


Ignore:
Timestamp:
2011-04-19 11:58:44 (13 months ago)
Author:
mpo
Message:

making sure we test for the right thing since http://valid/uri is *not*

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/kauri-forms/kauri-forms-framework/src/test/kauri.forms/test-basic-validators.js

    r1896 r1898  
    155155test("isUrl", function() { 
    156156 
    157     expect(12); 
     157    expect(13); 
    158158 
    159159    var v = getValidator("isUrl"); 
     
    167167    valueCheck(v, "https://example.com:8888/path", true); 
    168168    valueCheck(v, "https://example.com:888888/path", false); // port too big 
    169     valueCheck(v, "Some string with a http://valid/uri is not the same as a valid URI!", false); 
     169    valueCheck(v, "http://valid.uri", true); 
     170    valueCheck(v, "Some string with a http://valid.uri is not the same as a valid URI!", false); 
    170171    valueCheck(v, "https://127.0.0.1/", true); 
    171172    valueCheck(v, "no uri", false); 
Note: See TracChangeset for help on using the changeset viewer.