test-suite/tests/012_comt-admin-text-list.js
changeset 649 fcf5309284df
parent 646 24067001082c
equal deleted inserted replaced
648:c8b44a569549 649:fcf5309284df
    55         test_count  ('#texts_form :input', 4 + 3);
    55         test_count  ('#texts_form :input', 4 + 3);
    56         test_match  ('#paginator', /\s1-4 of 4\s/m);
    56         test_match  ('#paginator', /\s1-4 of 4\s/m);
    57 
    57 
    58         for (var i=4; i--;) {
    58         for (var i=4; i--;) {
    59             test_text   ('a.main_object_title:eq('+i+')', C.TEXTS[2]['#id_title']);
    59             test_text   ('a.main_object_title:eq('+i+')', C.TEXTS[2]['#id_title']);
    60             test_match  ('.tag_list:eq('+i+')', /tags: test_text Text Troisième /);
    60             test_match  ('.tag_list:eq('+i+')', /tags:(?:\sText Troisième|\stest_text){2}\s/);
    61             test_text   ('.tag_list:eq('+i+') a:eq(0)[href="?tag_selected=test_text"]', 'test_text');
    61             test_text   ('.tag_list:eq('+i+') a[href="?tag_selected=test_text"]', 'test_text');
    62             test_text   ('.tag_list:eq('+i+') a:eq(1)[href="?tag_selected=Text+Troisi%C3%A8me"]','Text Troisième');
    62             test_text   ('.tag_list:eq('+i+') a[href="?tag_selected=Text+Troisi%C3%A8me"]','Text Troisième');
    63             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(0)[href^="/text/"][href$="/view/"]', 'View');
    63             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(0)[href^="/text/"][href$="/view/"]', 'View');
    64             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(1)[href^="/text/"][href$="/edit/"]', 'Edit');
    64             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(1)[href^="/text/"][href$="/edit/"]', 'Edit');
    65             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(2)[href="#"][id*="text-delete-"]', 'Delete');
    65             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(2)[href="#"][id*="text-delete-"]', 'Delete');
    66             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(3)[href^="/text/"][href$="/share/"]', 'Users');
    66             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(3)[href^="/text/"][href$="/share/"]', 'Users');
    67             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(4)[href^="/text/"][href$="/settings/"]', 'Settings');
    67             test_text   ('#text .hidden-text-actions:eq('+i+') a:eq(4)[href^="/text/"][href$="/settings/"]', 'Settings');