Home | History | Annotate | Download | only in script-tests
      1 description(
      2 'This test checks that access to CSS properties via JavaScript properties on DOM elements is case sensitive.'
      3 );
      4 
      5 var element = document.createElement('a');
      6 element.style.zIndex = 1;
      7 
      8 debug('normal cases');
      9 debug('');
     10 
     11 shouldBe("element.style.zIndex", "'1'");
     12 shouldBeUndefined("element.style.ZIndex");
     13 
     14 debug('');
     15 debug('"css" prefix');
     16 debug('');
     17 
     18 shouldBe("element.style.cssZIndex", "'1'");
     19 shouldBe("element.style.CssZIndex", "'1'");
     20 shouldBeUndefined("element.style.CsszIndex");
     21 shouldBeUndefined("element.style.csszIndex");
     22 
     23 debug('');
     24 debug('"pixel" prefix');
     25 debug('');
     26 
     27 shouldBe("element.style.pixelZIndex", "1");
     28 shouldBe("element.style.PixelZIndex", "1");
     29 shouldBeUndefined("element.style.pixelzIndex");
     30 shouldBeUndefined("element.style.PixelzIndex");
     31 
     32 debug('');
     33 debug('"pos" prefix');
     34 debug('');
     35 
     36 shouldBe("element.style.posZIndex", "1");
     37 shouldBe("element.style.PosZIndex", "1");
     38 shouldBeUndefined("element.style.poszIndex");
     39 shouldBeUndefined("element.style.PoszIndex");
     40 
     41 var successfullyParsed = true;
     42