aboutsummaryrefslogtreecommitdiffstats
path: root/test/testabilityPatch.js
diff options
context:
space:
mode:
authorMisko Hevery2010-04-21 12:50:05 -0700
committerMisko Hevery2010-04-21 12:50:05 -0700
commite78405f6ed82fcd2e9a1cdffb7f1103d52752623 (patch)
tree1854bda08d6aa5e3c9e62056388eb7b83236f02b /test/testabilityPatch.js
parent22d93e0a3bc2a6dc0f64c63c68bc8f8489ea9068 (diff)
downloadangular.js-e78405f6ed82fcd2e9a1cdffb7f1103d52752623.tar.bz2
more if tests pass
Diffstat (limited to 'test/testabilityPatch.js')
-rw-r--r--test/testabilityPatch.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index 17341575..a2d67923 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -1,6 +1,8 @@
jstd = jstestdriver;
dump = bind(jstd.console, jstd.console.log);
+var NBSP = jqLite(' ').text();
+
function nakedExpect(obj) {
return expect(angular.fromJson(angular.toJson(obj)));
}
@@ -46,6 +48,7 @@ function sortedHtml(element) {
attr.value !='inherit' &&
attr.value !='0' &&
attr.name !='loop' &&
+ attr.name !='complete' &&
attr.name !='maxLength' &&
attr.name !='size' &&
attr.name !='start' &&
@@ -53,7 +56,8 @@ function sortedHtml(element) {
attr.name !='style' &&
attr.name.substr(0, 6) != 'jQuery') {
// in IE we need to check for all of these.
- attrs.push(' ' + attr.name + '="' + attr.value + '"');
+ if (!/ng-\d+/.exec(attr.name))
+ attrs.push(' ' + attr.name + '="' + attr.value + '"');
}
}
attrs.sort();
@@ -64,14 +68,14 @@ function sortedHtml(element) {
foreach(node.style.cssText.split(';'), function(value){
value = trim(value);
if (value) {
- style.push(value);
+ style.push(lowercase(value));
}
});
}
for(var css in node.style){
var value = node.style[css];
if (isString(value) && isString(css) && css != 'cssText' && value && (1*css != css)) {
- var text = css + ': ' + value;
+ var text = lowercase(css + ': ' + value);
if (value != 'false' && indexOf(style, text) == -1) {
style.push(text);
}