projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update docs for committing changes.
[dygraphs.git]
/
auto_tests
/
tests
/
Util.js
diff --git
a/auto_tests/tests/Util.js
b/auto_tests/tests/Util.js
index
66daa7f
..
08cc88a
100644
(file)
--- a/
auto_tests/tests/Util.js
+++ b/
auto_tests/tests/Util.js
@@
-66,3
+66,15
@@
Util.assertStyleOfChildren = function(selector, property, expectedValue) {
assertEquals(expectedValue, $(child).css(property));
});
};
assertEquals(expectedValue, $(child).css(property));
});
};
+
+
+/**
+ * Takes in an array of strings and returns an array of floats.
+ */
+Util.makeNumbers = function(ary) {
+ var ret = [];
+ for (var i = 0; i < ary.length; i++) {
+ ret.push(parseFloat(ary[i]));
+ }
+ return ret;
+};