From 0983840e7b4174fcf04d38f7740b94de1d91a801 Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Thu, 13 Jun 2013 16:31:48 -0400 Subject: [PATCH] Fix 06-unread regex, as it no longer seems to match the count. (imported from commit 9815772454d11c5216a162a0e0919a990670e54e) --- zephyr/tests/frontend/tests/06-unread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/tests/frontend/tests/06-unread.js b/zephyr/tests/frontend/tests/06-unread.js index 9b5cd3a096..aded7a9654 100644 --- a/zephyr/tests/frontend/tests/06-unread.js +++ b/zephyr/tests/frontend/tests/06-unread.js @@ -65,7 +65,7 @@ send_with_content('Othello unread test 5'); casper.then(function () { function get_sidebar() { return casper.evaluate(function () { return $("a[href='#narrow/stream/Venice']").text(); }); } function get_sidebar_num() { - var match = get_sidebar().match(/\w+\((\d+)\)/); + var match = get_sidebar().match(/\w+\s*\((\d+)\)/); if (match) { return parseInt(match[1], 10); } else {