Fix 06-unread regex, as it no longer seems to match the count.

(imported from commit 9815772454d11c5216a162a0e0919a990670e54e)
This commit is contained in:
Kevin Mehall
2013-06-13 16:31:48 -04:00
parent ae6afac3ca
commit 0983840e7b

View File

@@ -65,7 +65,7 @@ send_with_content('Othello unread test 5');
casper.then(function () { casper.then(function () {
function get_sidebar() { return casper.evaluate(function () { return $("a[href='#narrow/stream/Venice']").text(); }); } function get_sidebar() { return casper.evaluate(function () { return $("a[href='#narrow/stream/Venice']").text(); }); }
function get_sidebar_num() { function get_sidebar_num() {
var match = get_sidebar().match(/\w+\((\d+)\)/); var match = get_sidebar().match(/\w+\s*\((\d+)\)/);
if (match) { if (match) {
return parseInt(match[1], 10); return parseInt(match[1], 10);
} else { } else {