# HG changeset patch # User ymh # Date 1394874184 -3600 # Node ID 2bcc27f6c5fb79823b9109e59bc04e02f03c706f # Parent a0b695aace0a093a4f8355dd5cd94b44bd96ffbf correct test for dashboard under PhantomJS diff -r a0b695aace0a -r 2bcc27f6c5fb src/cm/scripts/test-suite/tests/tests.js --- a/src/cm/scripts/test-suite/tests/tests.js Thu Mar 13 18:19:43 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 a0b695aace0a -r 2bcc27f6c5fb src/cm/templates/site/dashboard.html --- a/src/cm/templates/site/dashboard.html Thu Mar 13 18:19:43 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 %}