607 test_text ('#header_controls a[href="/"]', 'Home'); |
607 test_text ('#header_controls a[href="/"]', 'Home'); |
608 test_text ('#header_controls a[href="/login/"]', 'Login'); |
608 test_text ('#header_controls a[href="/login/"]', 'Login'); |
609 } |
609 } |
610 |
610 |
611 function test_unlogged_footer (url) { |
611 function test_unlogged_footer (url) { |
612 test_count ('#footer a', 9); |
612 test_count ('#footer a', 10); |
613 test_text ('#footer a:nth-of-type(1)[href="/contact/"]', 'Contact'); |
613 test_text ('#footer a:nth-of-type(1)[href="/contact/"]', 'Contact'); |
614 test_match ('#footer #comentlink[href="http://www.co-ment.com"]', /Powered by/m); |
614 test_match ('#footer #comentlink[href="http://www.co-ment.com"]', /Powered by/m); |
615 test_text ('#footer a:nth-of-type(3)[href="/help/"]', 'Help'); |
615 test_text ('#footer a:nth-of-type(3)[href="/help/"]', 'Help'); |
616 test_text ('#footer a:nth-of-type(4)[href="/i18n/setlang/fr/"]', 'Français'); |
616 test_text ('#footer a:nth-of-type(4)[href="/i18n/setlang/fr/"]', 'Français'); |
617 test_text ('#footer a:nth-of-type(5)[href="/i18n/setlang/no/"]', 'Norsk'); |
617 test_text ('#footer a:nth-of-type(5)[href="/i18n/setlang/es/"]', 'Español'); |
618 test_text ('#footer a:nth-of-type(6)[href="/i18n/setlang/pt_BR/"]', 'Português Brasileiro'); |
618 test_text ('#footer a:nth-of-type(6)[href="/i18n/setlang/it/"]', 'Italiano'); |
619 test_text ('#footer a:nth-of-type(7)[href="/i18n/setlang/es/"]', 'Español'); |
619 test_text ('#footer a:nth-of-type(7)[href="/i18n/setlang/de/"]', 'Deutsch'); |
620 test_text ('#footer a:nth-of-type(8)[href="/i18n/setlang/bg/"]', 'Български'); |
620 test_text ('#footer a:nth-of-type(8)[href="/i18n/setlang/pt_BR/"]', 'Português Brasileiro'); |
621 test_text ('#footer a:nth-of-type(9)[href="/i18n/setlang/it/"]', 'Italiano'); |
621 test_text ('#footer a:nth-of-type(9)[href="/i18n/setlang/nb/"]', 'Norsk'); |
|
622 test_text ('#footer a:nth-of-type(10)[href="/i18n/setlang/bg/"]', 'Български'); |
622 } |
623 } |
623 |
624 |
624 function test_readz_field (field_id) { |
625 function test_readz_field (field_id) { |
625 test ('get '+field_id, dsl(function () { |
626 test ('get '+field_id, dsl(function () { |
626 element (field_id).val (function (v) { |
627 element (field_id).val (function (v) { |