# HG changeset patch # User ymh # Date 1394874184 -3600 # Node ID 73d293d9cf7606e695fe1de4087958b2b77a6dd1 # Parent 03dc7baf73af4fde2ddc7cd6419aecb2b62ef897 correct test for dashboard under PhantomJS diff -r 03dc7baf73af -r 73d293d9cf76 src/cm/scripts/test-suite/tests/tests.js --- a/src/cm/scripts/test-suite/tests/tests.js Sat Mar 15 10:02:34 2014 +0100 +++ b/src/cm/scripts/test-suite/tests/tests.js Sat Mar 15 10:03:04 2014 +0100 @@ -182,11 +182,11 @@ test_count ('table.dash_table', 5); test_text ('table.dash_table th:eq(0)', 'Actions'); test_match ('table.dash_table:eq(0) a:eq(0)[href="/create/content/"]', /\sCreate a text/); - test_text ('table.dash_table:eq(0) a:eq(1).tip[href="#"]', ' '); + test_text ('table.dash_table:eq(0) a:eq(1).tip[href="#"]', '\xa0'); test_match ('table.dash_table:eq(0) a:eq(2)[href="/create/upload/"]', /\sUpload a text/); - test_text ('table.dash_table:eq(0) a:eq(3).tip[href="#"]', ' '); + test_text ('table.dash_table:eq(0) a:eq(3).tip[href="#"]', '\xa0'); test_match ('table.dash_table:eq(0) a:eq(4)[href="/create/import/"]', /\sImport a co-mented text/); - test_text ('table.dash_table:eq(0) a:eq(5).tip[href="#"]', ' '); + test_text ('table.dash_table:eq(0) a:eq(5).tip[href="#"]', '\xa0'); test_match ('table.dash_table:eq(0) a:eq(6)[href="/user/add/"]', /\sInvite user/); test_match ('table.dash_table:eq(0) a:eq(7)[href="/profile/"]', /\sEdit your profile/); test_match ('table.dash_table:eq(0) a:eq(8)[href="/text/"]', /\sView text list/); diff -r 03dc7baf73af -r 73d293d9cf76 src/cm/templates/site/dashboard.html --- a/src/cm/templates/site/dashboard.html Sat Mar 15 10:02:34 2014 +0100 +++ b/src/cm/templates/site/dashboard.html Sat Mar 15 10:03:04 2014 +0100 @@ -45,9 +45,9 @@ - {% if can_create_text %}
 {% blocktrans %}Create a text{% endblocktrans %} 
{% endif %} - {% if can_create_text %}
 {% blocktrans %}Upload a text{% endblocktrans %} 
{% endif %} - {% if can_create_text %}
 {% blocktrans %}Import a co-mented text{% endblocktrans %} 
{% endif %} + {% if can_create_text %}
 {% blocktrans %}Create a text{% endblocktrans %}  
{% endif %} + {% if can_create_text %}
 {% blocktrans %}Upload a text{% endblocktrans %}  
{% endif %} + {% if can_create_text %}
 {% blocktrans %}Import a co-mented text{% endblocktrans %}  
{% endif %} {% if can_manage_workspace %}
 {% blocktrans %}Invite user{% endblocktrans %}
{% endif %}
 {% blocktrans %}Edit your profile{% endblocktrans %}
 {% blocktrans %}View text list{% endblocktrans %}