Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Trailing whitepace police

  • Loading branch information...
commit c5cae2ac796e6a71215581ec66df99879800a8b8 1 parent 205df1b
@arian arian authored
Showing with 144 additions and 145 deletions.
  1. +3 −3 Docs/Element/Element.md
  2. +1 −1  Docs/Request/Request.HTML.md
  3. +2 −2 Docs/Slick/Slick.md
  4. +1 −1  Docs/Types/String.md
  5. +1 −1  Specs/1.2/Core/Browser.js
  6. +4 −4 Specs/1.2/Core/Core.js
  7. +1 −1  Specs/1.2/Core/Native.js
  8. +19 −19 Specs/1.2/Element/Element.Dimensions.js
  9. +1 −1  Specs/1.2/Element/Element.Style.js
  10. +5 −5 Specs/1.2/Utilities/Cookie.js
  11. +2 −2 Specs/1.3base/Class/Class.js
  12. +11 −11 Specs/1.3base/Types/Array.js
  13. +1 −1  Specs/1.3base/Types/Object.js
  14. +1 −1  Specs/1.3base/package.yml
  15. +2 −2 Specs/1.3client/Browser/Browser.js
  16. +1 −1  Specs/1.3client/Class/Class.Extras.js
  17. +2 −2 Specs/1.3client/Core/Core.js
  18. +1 −1  Specs/1.3client/Element/Element.Dimensions.js
  19. +25 −25 Specs/1.3client/Element/NewElement.js
  20. +2 −2 Specs/1.3client/Fx/Fx.Morph.js
  21. +5 −5 Specs/1.3client/Fx/Fx.Tween.js
  22. +2 −2 Specs/1.3client/Utilities/Cookie.js
  23. +33 −33 Specs/1.3client/Utilities/DOMReady.php
  24. +1 −1  Specs/1.3client/package.yml
  25. +2 −2 Specs/1.4base/Types/Function-nocompat.js
  26. +1 −1  Specs/1.4client/Element/Element.Event.change.html
  27. +5 −5 Specs/1.4client/Element/Element.Style.js
  28. +3 −3 Specs/1.4client/Fx/Fx.Morph.js
  29. +1 −2  Specs/1.4client/Fx/Fx.html
  30. +5 −5 Specs/README.md
View
6 Docs/Element/Element.md
@@ -640,9 +640,9 @@ Inserts the passed element(s) inside the Element (which will then become the par
var mySecondElement = new Element('p#second');
var myThirdElement = new Element('ul#third');
var myFourthElement = new Element('a#fourth');
-
+
var myParentElement = new Element('div#parent');
-
+
myFirstElement.adopt(mySecondElement);
mySecondElement.adopt(myThirdElement, myFourthElement);
myParentElement.adopt([myFirstElement, new Element('span#another')]);
@@ -1427,7 +1427,7 @@ Sets an attribute or special property for this Element.
- use 'class', not 'className'
- use 'frameborder', not 'frameBorder'
- etc.
-- When setting the `src` property for an image file, be sure to remove the `width` and `height` attribute (use `Element.removeAttribute`). IE7, and less, set and freeze the `width` and `height` of an image if previously specified.
+- When setting the `src` property for an image file, be sure to remove the `width` and `height` attribute (use `Element.removeAttribute`). IE7, and less, set and freeze the `width` and `height` of an image if previously specified.
Element Method: setProperties {#Element:setProperties}
------------------------------------------------------
View
2  Docs/Request/Request.HTML.md
@@ -176,4 +176,4 @@ Updates the content of the Element with a Request.HTML GET request.
[Request]: /core/Request/Request
[$]: /core/Element/Element/#Window:dollar
[Element.Properties]: /core/Element/Element/#Element-Properties
-[Elements:filter]: /core/Element/Element#Elements:filter
+[Elements:filter]: /core/Element/Element#Elements:filter
View
4 Docs/Slick/Slick.md
@@ -240,7 +240,7 @@ Nth Expression:
* nExpression - (string) A nth expression for the "every" nth-child.
### Examples:
-
+
<span id="i1"></span>
<span id="i2"></span>
<span id="i3"></span>
@@ -252,7 +252,7 @@ Nth Expression:
$$(':nth-last-child(2n)'); //Returns Elements #i2 and #i4.
$$(':nth-last-child(2n+1)') //Returns Elements #i1, #i3 and #i5.
-
+
$$(':nth-last-child(3n+2)') //Returns Elements #i1 and #i4.
Every Odd Child (same as 2n+1):
View
2  Docs/Types/String.md
@@ -397,4 +397,4 @@ Strips the String of its *<script>* tags and anything in between them.
[MDC Array]: https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Array
[String:trim]: #String:trim
[Array:rgbToHex]: /core/Types/Array/#Array:rgbToHex
-[String:trim]: #String:trim
+[String:trim]: #String:trim
View
2  Specs/1.2/Core/Browser.js
@@ -37,4 +37,4 @@ describe('Window', {
expect($defined(window.Element.prototype)).toBeTruthy();
}
-});
+});
View
8 Specs/1.2/Core/Core.js
@@ -240,7 +240,7 @@ describe('$time', {
'should return a timestamp': function(){
expect(Number.type($time())).toBeTruthy();
},
-
+
'should be within a reasonable range': function(){
expect($time() < 1e13 && $time() > 1e12).toBeTruthy();
}
@@ -318,7 +318,7 @@ describe('$type', {
expect(type == 'array' || type == 'arguments').toBeTruthy();
return;
}
-
+
expect($type(arguments)).toEqual('arguments');
},
@@ -338,11 +338,11 @@ describe('$type', {
var div = document.createElement('div');
expect($type(div)).toEqual('element');
},
-
+
"should return 'array' for Elements": function(){
expect($type(new Elements)).toEqual('array');
},
-
+
"should return 'window' for the window object": function(){
expect($type(window)).toEqual('window');
},
View
2  Specs/1.2/Core/Native.js
@@ -66,4 +66,4 @@ describe('Native (private)', {
});
-})();
+})();
View
38 Specs/1.2/Element/Element.Dimensions.js
@@ -28,7 +28,7 @@ describe('Element.Dimensions', function(){
zIndex: 1
}
}).inject($(document.body));
-
+
relDiv = new Element('div', {
styles: {
width: 50,
@@ -43,7 +43,7 @@ describe('Element.Dimensions', function(){
'display': 'inline'
}
}).inject(div);
-
+
absDiv = new Element('div', {
styles: {
width: 10,
@@ -58,7 +58,7 @@ describe('Element.Dimensions', function(){
overflow: 'hidden'
}
}).inject(relDiv);
-
+
scrollDiv = new Element('div', {
styles: {
width: 100,
@@ -70,7 +70,7 @@ describe('Element.Dimensions', function(){
left: 0
}
}).inject($(document.body));
-
+
tallDiv = new Element('div', {
styles: {
width: 200,
@@ -81,50 +81,50 @@ describe('Element.Dimensions', function(){
});
describe('Element.getSize', function(){
-
+
it('should measure the width and height of the element', function(){
expect(div.getSize().x).toEqual(108);
expect(div.getSize().y).toEqual(108);
});
-
+
});
-
+
describe('Element.getPosition', function(){
-
+
it('should measure the x and y position of the element', function(){
expect(div.getPosition()).toEqual({x: 102, y: 102});
});
-
+
it('should measure the x and y position of the element relative to another', function(){
expect(relDiv.getPosition(div)).toEqual({x: 8, y: 8});
});
-
+
});
describe('Element.getCoordinates', function(){
-
+
it('should return the coordinates relative to parent', function(){
expect(absDiv.getCoordinates(relDiv)).toEqual({left:15, top:15, width:22, height:22, right:37, bottom:37});
});
-
+
});
-
+
describe('Element.getScrollSize', function(){
-
+
it('should return the scrollSize', function(){
expect(scrollDiv.getScrollSize()).toEqual({x:200, y:200});
});
-
+
});
-
+
describe('Element.scrollTo', function(){
-
+
it('should scroll the element', function(){
expect(scrollDiv.scrollTo(20, 20).getScroll()).toEqual({x:20, y:20});
});
-
+
});
-
+
afterEach(function(){
[div, relDiv, absDiv, scrollDiv, tallDiv].each(function(el){
$(el).destroy();
View
2  Specs/1.2/Element/Element.Style.js
@@ -84,4 +84,4 @@ describe('Element.setStyles', {
expect(new Element('div').setStyles({'list-style-type':'square', 'color':'#00ff00'}).getStyles('list-style-type', 'color')).toEqual({'list-style-type':'square', color:'#00ff00'});
}
-});
+});
View
10 Specs/1.2/Utilities/Cookie.js
@@ -7,11 +7,11 @@ License:
*/
describe('Cookie', {
-
+
"should set a cookie": function(){
Cookie.write('test', 1);
-
-
+
+
}
-
-});
+
+});
View
4 Specs/1.3base/Class/Class.js
@@ -263,7 +263,7 @@ describe('Class toString', function(){
var Italian = new Class({
Extends: Person,
-
+
toString: function(){
return "It's me, " + this.name;
}
@@ -277,4 +277,4 @@ describe('Class toString', function(){
});
-})();
+})();
View
22 Specs/1.3base/Types/Array.js
@@ -7,7 +7,7 @@ provides: [Array.Specs]
...
*/
(function(){
-
+
var getTestArray = function(){
var a = [0, 1, 2, 3];
delete a[1];
@@ -41,14 +41,14 @@ describe("Array Methods 1.3", {
var arr = array.concat([false, null, 4]).filter(Type.isNumber);
expect(arr).toEqual(array.concat(4));
},
-
+
'filter should skip deleted elements': function(){
var i = 0;
getTestArray().filter(function(){
i++;
return true;
});
-
+
expect(i).toEqual(2);
},
@@ -75,10 +75,10 @@ describe("Array Methods 1.3", {
getTestArray().map(function(){
return i++;
});
-
+
expect(i).toEqual(2);
},
-
+
// Array.every
'should return true if every item matches the comparator, otherwise false': function(){
@@ -86,14 +86,14 @@ describe("Array Methods 1.3", {
expect(['1',2,3,0].every(Type.isNumber)).toBeFalsy();
},
-
+
'every should skip deleted elements': function(){
var i = 0;
getTestArray().every(function(){
i++;
return true;
});
-
+
expect(i).toEqual(2);
},
@@ -104,18 +104,18 @@ describe("Array Methods 1.3", {
expect([1,2,3,0,0,0].map(String).some(Type.isNumber)).toBeFalsy();
},
-
+
'some should skip deleted elements': function(){
var i = 0;
var a = getTestArray();
delete a[0];
-
+
// skips the first three elements
a.some(function(value, index){
i = index;
return true;
});
-
+
expect(i).toEqual(3);
},
@@ -268,4 +268,4 @@ describe('Array.pick', function(){
});
-})();
+})();
View
2  Specs/1.3base/Types/Object.js
@@ -125,4 +125,4 @@ describe('Object.getLength', function(){
});
-})();
+})();
View
2  Specs/1.3base/package.yml
@@ -12,4 +12,4 @@ sources:
- "Types/Function.js"
- "Types/Object.js"
- "Class/Class.js"
- - "Fx/Fx.js"
+ - "Fx/Fx.js"
View
4 Specs/1.3client/Browser/Browser.js
@@ -12,9 +12,9 @@ describe('Browser', {
'should think it is executed in a browser': function(){
expect(Browser.ie || Browser.safari || Browser.chrome || Browser.firefox || Browser.opera).toEqual(true);
},
-
+
'should assume the IE version is emulated by the documentMode (X-UA-Compatible)': function(){
if (Browser.ie && document.documentMode) expect(Browser.version).toEqual(document.documentMode);
}
-});
+});
View
2  Specs/1.3client/Class/Class.Extras.js
@@ -180,4 +180,4 @@ runEventSpecs('element', function(){
return new Element('div');
});
-})();
+})();
View
4 Specs/1.3client/Core/Core.js
@@ -44,7 +44,7 @@ describe('Array.from', function(){
var array = Array.from(div1.getElementsByTagName('*'));
expect(Type.isArray(array)).toEqual(true);
});
-
+
it('should return an array for an Options collection', function(){
var div = document.createElement('div');
div.innerHTML = '<select><option>a</option></select>';
@@ -53,4 +53,4 @@ describe('Array.from', function(){
expect(Type.isArray(array)).toEqual(true);
});
-});
+});
View
2  Specs/1.3client/Element/Element.Dimensions.js
@@ -28,7 +28,7 @@ describe('Element.getOffsetParent', function(){
td = new Element('td').inject(new Element('tr').inject(table));
container.inject(document.body);
-
+
});
it('Should return the right offsetParent', function(){
View
50 Specs/1.3client/Element/NewElement.js
@@ -8,105 +8,105 @@ provides: [NewElement.Specs]
*/
describe('new Element(expression)', function(){
-
+
it('should create a new div element', function(){
var div = new Element('div');
-
+
expect(div.tagName.toLowerCase()).toEqual('div');
expect(!div.className && div.className.length == 0).toBeTruthy();
expect(!div.id && div.id.length == 0).toBeTruthy();
expect(typeOf(div)).toEqual('element');
});
-
+
it('should create a new element with id and class', function(){
var p = new Element('p', {
id: 'myParagraph',
'class': 'test className'
});
-
+
expect(p.tagName.toLowerCase()).toEqual('p');
expect(p.className).toEqual('test className');
});
-
+
it('should create a new element with id and class from css expression', function(){
var p = new Element('p#myParagraph.test.className');
-
+
expect(p.tagName.toLowerCase()).toEqual('p');
expect(p.className).toEqual('test className');
});
-
+
it('should create attributes from css expression', function(){
var input = new Element('input[type=text][readonly=true][value=Some Text]');
-
+
expect(input.tagName.toLowerCase()).toEqual('input');
expect(input.type).toEqual('text');
expect(input.readOnly).toEqual(true);
expect(input.value).toEqual('Some Text');
});
-
+
it('should overwrite ids and classes', function(){
var div = new Element('div#myDiv.myClass', {
id: 'myOverwrittenId',
'class': 'overwrittenClass'
});
-
+
expect(div.tagName.toLowerCase()).toEqual('div');
expect(div.id).toEqual('myOverwrittenId');
expect(div.className).toEqual('overwrittenClass');
});
-
+
it('should overwrite attributes', function(){
var a = new Element('a[href=http://dojotoolkit.org/]', {
href: 'http://mootools.net/'
});
-
+
expect(a.tagName.toLowerCase()).toEqual('a');
expect(a.href).toEqual('http://mootools.net/');
});
-
+
it('should reset attributes and classes with empty string', function(){
var div = new Element('div#myDiv.myClass', {
id: '',
'class': ''
});
-
+
expect(div.tagName.toLowerCase()).toEqual('div');
expect(div.id).toEqual('');
expect(div.className).toEqual('');
});
-
+
it('should not reset attributes and classes with null', function(){
var div = new Element('div#myDiv.myClass', {
id: null,
'class': null
});
-
+
expect(div.tagName.toLowerCase()).toEqual('div');
expect(div.id).toEqual('myDiv');
expect(div.className).toEqual('myClass');
});
-
+
it('should not reset attributes and classes with undefined', function(){
var div = new Element('div#myDiv.myClass', {
id: undefined,
'class': undefined
});
-
+
expect(div.tagName.toLowerCase()).toEqual('div');
expect(div.id).toEqual('myDiv');
expect(div.className).toEqual('myClass');
});
-
+
it('should fall back to a div tag', function(){
var someElement = new Element('#myId');
-
+
expect(someElement.tagName.toLowerCase()).toEqual('div');
expect(someElement.id).toEqual('myId');
});
-
+
it('should allow zero (0) values', function(){
var table = new Element('table[cellpadding=0]');
-
+
expect(table.tagName.toLowerCase()).toEqual('table');
expect(table.cellPadding == 0).toBeTruthy();
});
@@ -121,8 +121,8 @@ describe('new Element(expression)', function(){
type: 'checkbox',
checked: false
});
-
+
expect(input.checked).toEqual(false);
});
-
-});
+
+});
View
4 Specs/1.3client/Fx/Fx.Morph.js
@@ -7,11 +7,11 @@ provides: [Fx.Morph.Specs]
...
*/
describe('Fx.Morph', function(){
-
+
beforeEach(function(){
this.clock = sinon.useFakeTimers();
});
-
+
afterEach(function(){
this.clock.reset();
this.clock.restore();
View
10 Specs/1.3client/Fx/Fx.Tween.js
@@ -7,11 +7,11 @@ provides: [Fx.Tween.Specs]
...
*/
describe('Fx.Tween', function(){
-
+
beforeEach(function(){
this.clock = sinon.useFakeTimers();
});
-
+
afterEach(function(){
this.clock.reset();
this.clock.restore();
@@ -29,9 +29,9 @@ describe('Fx.Tween', function(){
duration: 100,
property: 'height'
});
-
+
fx.start(10, 50);
-
+
this.clock.tick(200);
expect(element.offsetHeight).toEqual(50);
@@ -118,7 +118,7 @@ describe('Fx.Tween', function(){
element.highlight('#f00');
this.clock.tick(40);
-
+
expect(['#fff', '#ffffff']).toContain(element.getStyle('background-color').toLowerCase());
element.destroy();
View
4 Specs/1.3client/Utilities/Cookie.js
@@ -12,7 +12,7 @@ describe('Cookie', function(){
var options = {
duration: 1
};
-
+
Cookie.write('key', 'value', options);
expect(Cookie.read('key', options)).toBe('value');
@@ -22,4 +22,4 @@ describe('Cookie', function(){
expect(Cookie.read('key', options)).toBeNull();
});
-});
+});
View
66 Specs/1.3client/Utilities/DOMReady.php
@@ -4,17 +4,17 @@ function getCurrentURL(){
$pageURL = 'http' . (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on" ? 's' : '');
$pageURL .= "://" . $_SERVER["SERVER_NAME"];
if ($_SERVER["SERVER_PORT"] != "80") $pageURL .= ":".$_SERVER["SERVER_PORT"];
-
+
return $pageURL.$_SERVER["REQUEST_URI"];
}
// http://forum.jquery.com/topic/implementation-of-domcontentloaded-failing-when-no-assets
// by andrea.giammarchi on 13-Jul-2008 10:21 PM
function flushPause($pause = 0){
- echo ob_get_clean();
- @ob_flush();
- flush();
- usleep($pause * 1000000);
+ echo ob_get_clean();
+ @ob_flush();
+ flush();
+ usleep($pause * 1000000);
}
ob_start();
@@ -36,17 +36,17 @@ function flushPause($pause = 0){
function somethingHappened(id, result){
if (window.ONLOAD) document.body.insertBefore(MESSAGES, document.body.firstChild)
-
+
if (typeof result == 'function') result = result()
if (result == null) result = ''
if (result === true) result = 'PASS'
if (result === false) result = 'FAIL'
-
+
if (thingsThatHappened[id] === result) return
thingsThatHappened[id] = result
-
+
log((+new Date - START_TIME) +' '+ id + ' ' + result)
-
+
MESSAGES.innerHTML
+= '<p id="' + id + '" class="' + result + '">'
+ '<b>' + (+new Date - START_TIME) + 'ms </b>'
@@ -109,7 +109,7 @@ function DomReady(fn){
window.addEvent('load', function(){
loadScript('load');
-
+
window.LOADED = true
somethingHappened('<i>MooTools load</i>', function(){
return !!window.READY
@@ -184,7 +184,7 @@ function DomReady(fn){
function pollDoScroll(){
if (!TEST_ELEMENT.doScroll) return
var PASS
-
+
try {
TEST_ELEMENT.doScroll('left')
PASS = true
@@ -192,17 +192,17 @@ function pollDoScroll(){
catch (e){
PASS = false
}
-
+
window.CANSCROLL = PASS
somethingHappened('TEST_ELEMENT.doScroll()', PASS)
-
+
if (!PASS) setTimeout(pollDoScroll, 10)
}
function pollDoScroll_body(){
if (!document.body.doScroll) return
var PASS
-
+
try {
document.body.doScroll('left')
PASS = true
@@ -210,9 +210,9 @@ function pollDoScroll_body(){
catch (e){
PASS = false
}
-
+
somethingHappened('document.body.doScroll()', PASS)
-
+
if (!PASS) setTimeout(pollDoScroll_body, 10)
}
@@ -228,7 +228,7 @@ function pollReadyState(){
function pollBodyExists(){
var PASS
-
+
try {
document.body.lastChild
PASS = true
@@ -245,7 +245,7 @@ function pollAugmentBody(){
, body = document.body
, root = body.parentNode
, sibling = body.nextSibling
-
+
try {
body.appendChild(document.createTextNode( new Date - START_TIME + 'ms:Body ') )
PASS = true
@@ -261,15 +261,15 @@ function pollAugmentBody(){
var readyTests = {
"document.readyState ==": function(){return document.readyState}
-
+
,'document.body exists?': function(){return document.body ?'Yes':'No'}
-
+
,"All page content loaded and parsed?": function(){return window.PARSED ?'Yes':'No'}
,"cached IMG onload fired?": function(){return window.IMG_ONLOAD ?'Yes':'No'}
,"uncached IMG onload fired?": function(){return window.IMG_ONLOAD_UNCACHED ?'Yes':'No'}
,"document ready?": function(){return !!window.READY ?'Yes':'No'}
,"onload fired?": function(){return !!window.ONLOAD ?'Yes':'No'}
-
+
,"el.doScroll()": function(){
try {
TEST_ELEMENT.doScroll()
@@ -279,7 +279,7 @@ function pollAugmentBody(){
return 'No'
}
}
-
+
,"body.doScroll('left')": function(){
try {
document.body.doScroll('left')
@@ -289,11 +289,11 @@ function pollAugmentBody(){
return 'No'
}
}
-
+
,'isFramed?': function(){
return isFramed() ?'Yes':'No'
}
-
+
,'Is top frame?': function(){
return window.window === window.top ?'Yes':'No'
}
@@ -318,29 +318,29 @@ function poll(){
var results = {}
, lastResults = readyTestResults[readyTestResults.length - 1] || {}
, hasDifferentResults = 0
-
+
results.ms = new Date - START_TIME
-
+
for (var id in readyTests){
results[id] = readyTests[id]()
if (results[id] == lastResults[id]) continue
-
+
++ hasDifferentResults
somethingHappened(id, results[id])
}
-
+
var shouldBeReady
-
+
if (window.CANSCROLL && !isFramed()) shouldBeReady = true
if ({loaded:1,complete:1}[document.readyState]) shouldBeReady = true
if (window.LOADED) shouldBeReady = true
if (window.IMG_ONLOAD_UNCACHED) shouldBeReady = true
-
+
if (shouldBeReady)
somethingHappened('Should be Ready!', function(){
return !!window.READY ?true:'Not yet...'
})
-
+
if (hasDifferentResults) readyTestResults.push(results)
if (!window.ONLOAD) setTimeout(poll, 10)
else report()
@@ -358,7 +358,7 @@ function isFramed(){
function report(){
var EL = document.createElement('div')
, HTML = '<table class=results>'
-
+
for (var i = 0; i < readyTestResults.length; ++i){
if (i == 0){
HTML += '<thead><tr>'
@@ -378,7 +378,7 @@ function report(){
}
HTML += '</tr>'
}
-
+
EL.innerHTML = HTML
document.body.insertBefore(EL, document.body.firstChild)
}
View
2  Specs/1.3client/package.yml
@@ -23,4 +23,4 @@ sources:
- "Request/Request.HTML.js"
- "Request/Request.JSON.js"
- "Utilities/Cookie.js"
- - "Utilities/JSON.js"
+ - "Utilities/JSON.js"
View
4 Specs/1.4base/Types/Function-nocompat.js
@@ -18,8 +18,8 @@ describe('Function.bind', function(){
var fn = function(){
return [this.foo].concat(Array.slice(arguments));
};
-
- expect(fn.bind({foo: 'bar'})()).toEqual(['bar'])
+
+ expect(fn.bind({foo: 'bar'})()).toEqual(['bar']);
expect(fn.bind({foo: 'bar'}, 'first').call({foo: 'yeah!'}, 'yooo')).toEqual(['bar', 'first', 'yooo']);
var bound = fn.bind({foo: 'bar'});
View
2  Specs/1.4client/Element/Element.Event.change.html
@@ -123,7 +123,7 @@
log('change bubbles', true);
});
</script>
-
+
</div>
</body>
View
10 Specs/1.4client/Element/Element.Style.js
@@ -158,7 +158,7 @@ describe('Element.Style', function(){
});
});
-
+
describe('getStyle border after setStyle', function(){
it('should have same order when getting a previously set border', function(){
@@ -175,7 +175,7 @@ describe('Element.Style', function(){
});
});
-
+
describe('getStyle background-position', function(){
beforeEach(function(){
var className = 'getStyleBackgroundPosition';
@@ -204,17 +204,17 @@ describe('Element.Style', function(){
this.element.destroy();
this.element = null;
});
-
+
it('should have non-empty background-position shorthand', function(){
expect(this.element.getStyle('background-position')).not.toEqual(null);
expect(this.element.getStyle('background-position')).toMatch(/\w+/);
});
-
+
it('should not return a keyword-based background-position shorthand', function(){
expect(this.element.getStyle('background-position')).not.toMatch(/(top|right|bottom|left)/);
expect(this.element.getStyle('background-position')).toEqual('0% 100%');
});
-
+
it('should have non-empty background-position on an element with no set styles', function(){
var element = new Element('div');
expect(element.getStyle('background-position')).not.toEqual(null);
View
6 Specs/1.4client/Fx/Fx.Morph.js
@@ -37,7 +37,7 @@ describe('Fx.Morph', function(){
expect(this.div.setStyle).toHaveBeenCalledWith('left', ['10%']);
expect(this.div.setStyle).toHaveBeenCalledWith('left', ['50%']);
});
-
+
it('it should morph when the unit option is set, but an empty value', function(){
this.div.set('morph', {
@@ -49,7 +49,7 @@ describe('Fx.Morph', function(){
});
this.clock.tick(150);
-
+
expect(this.div.getStyle('top')).toEqual('100px');
expect(this.div.getStyle('opacity')).toEqual(1);
@@ -69,7 +69,7 @@ describe('Fx.Morph', function(){
});
this.clock.tick(150);
-
+
expect(this.div.getStyle('top')).toEqual('100px');
expect(this.div.getStyle('opacity')).toEqual(1);
View
3  Specs/1.4client/Fx/Fx.html
@@ -164,7 +164,7 @@
<p>
<a href="#" id="fx-sun">start</a>
</p>
-
+
<div id="sun" class="box"></div>
<style>
@@ -262,4 +262,3 @@ <h1 id="fade2" class="box">test</h1>
</body>
</html>
-
View
10 Specs/README.md
@@ -12,16 +12,16 @@ the browser, via JSTestDriver and via NodeJS.
# init all git submodules
git submodule update --init --recursive
-
+
**Run:**
-To run the tests, you could just open the file `Specs/Runner/runner.html` in a browser, however for
+To run the tests, you could just open the file `Specs/Runner/runner.html` in a browser, however for
some tests you you need some webserver, like apache or python SimpleServer:
python -m SimpleHTTPServer 8080
-Now you can open `http://localhost:8080/Specs/` in the browser to choose a preset or open
-`http://localhost:8080/Specs/Runner/runner.html?preset=core-1.4` to run the 1.4 tests.
+Now you can open `http://localhost:8080/Specs/` in the browser to choose a preset or open
+`http://localhost:8080/Specs/Runner/runner.html?preset=core-1.4` to run the 1.4 tests.
## JSTD
@@ -64,4 +64,4 @@ Example for NodeJS
Options
"path" - Only needs to be specified if the core-specs repository is being used outside of the MooTools Core repository
"specs" - The specs to run, see Sets.js
- "version" - The version of MooTools to be used for running the specs
+ "version" - The version of MooTools to be used for running the specs

1 comment on commit c5cae2a

@ibolmo
Owner

lol nice.

Please sign in to comment.
Something went wrong with that request. Please try again.