mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 08:49:06 +08:00
tests failing jstd to show cory
This commit is contained in:
@@ -74,19 +74,18 @@ function sortedHtml(element) {
|
||||
return html;
|
||||
}
|
||||
|
||||
function isVisible(node) {
|
||||
function isCssVisible(node) {
|
||||
var display = node.css('display');
|
||||
if (display == 'block') display = "";
|
||||
return display != 'none';
|
||||
}
|
||||
|
||||
function assertHidden(node) {
|
||||
var display = node.css('display');
|
||||
assertFalse("Node should be hidden but vas visible: " + sortedHtml(node), isVisible(node));
|
||||
assertFalse("Node should be hidden but vas visible: " + sortedHtml(node), isCssVisible(node));
|
||||
}
|
||||
|
||||
function assertVisible(node) {
|
||||
assertTrue("Node should be visible but vas hidden: " + sortedHtml(node), isVisible(node));
|
||||
assertTrue("Node should be visible but vas hidden: " + sortedHtml(node), isCssVisible(node));
|
||||
}
|
||||
|
||||
function assertJsonEquals(expected, actual) {
|
||||
|
||||
Reference in New Issue
Block a user