Changeset 628


Ignore:
Timestamp:
05/25/09 21:29:43 (3 years ago)
Author:
jf.hovinne
Message:

Fixed unit tests styles and added test for #81.

Location:
trunk/src/test/unit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test/unit/index.html

    r582 r628  
    9292}); 
    9393 
     94test("Should remove PRE line breaks (BR)", function() { 
     95    expect(1); 
     96    var original = "<pre>One<br>Two<br>Three</pre><p>Test</p><pre>Three<br>Four<br>Five</pre>"; 
     97    var expected = "<pre>One\r\nTwo\r\nThree</pre><p>Test</p><pre>Three\r\nFour\r\nFive</pre>"; 
     98    equals( jQuery.wymeditors(0).parser.parse(original), expected, "Remove BR in PRE" ); 
     99}); 
     100 
    94101function runPostInitTests() { 
    95102    module("Post Init"); 
  • trunk/src/test/unit/styles.css

    r535 r628  
    66 
    77/* PARA: Date */ 
    8 .date p{ 
     8p.date { 
    99  color: #ccf; 
    1010  /* background-color: #ff9; border: 2px solid #ee9; */ 
     
    1212 
    1313/* PARA: Hidden note */ 
    14 .hidden-note p /* p[@class!="important"] */ { 
     14p.hidden-note /* p[@class!="important"] */ { 
    1515     display: none; 
    1616    /* color: #999; border: 2px solid #ccc; */ 
     
    1818 
    1919/* PARA: Important */ 
    20 .important p /* p[@class!="hidden-note"] */ { 
     20p.important /* p[@class!="hidden-note"] */ { 
    2121    color: red; font-weight: bold; 
    2222    /* color: red; font-weight: bold; border: 2px solid red; */ 
    2323} 
    2424 
    25 .border img { 
     25img.border { 
    2626    border: 1px solid #ccc; 
    2727    /* border: 4px solid #ccc; */ 
     
    2929 
    3030/* LIST: Special */ 
    31 .special ul, 
    32 .special ol { 
     31ul.special, 
     32ol.special { 
    3333    color: green; 
    3434    /** / background-color: #fc9; border: 2px solid red; /**/ 
Note: See TracChangeset for help on using the changeset viewer.