| | |
| | | <form class="navbar-form navbar-left"> |
| | | <div class="input-group"> |
| | | <span class="input-group-btn"> |
| | | <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Stop name" autofocus="autofocus" /> |
| | | <input type="text" class="form-control form-round-left" id="stop-name" placeholder="Nazwa przystanku" autofocus="autofocus" /> |
| | | </span> |
| | | <select class="form-control" id="stop-name-autocomplete"> |
| | | </select> |
| | | <span class="input-group-btn"> |
| | | <button type="submit" class="btn btn-default" data-translate="go_button">Go</button> |
| | | <button type="submit" class="btn btn-default" data-translate="go_button">Dalej</button> |
| | | </span> |
| | | </div> |
| | | </form> |
| | |
| | | var page_title = document.getElementsByTagName('title')[0]; |
| | | var ignore_hashchange = false; |
| | | |
| | | var language = 'en'; |
| | | var language = 'pl'; |
| | | var lang_select = document.getElementById('lang-select'); |
| | | |
| | | var stop_id = ''; |
| | |
| | | }); |
| | | |
| | | casper.test.begin('Translation engine', 2, function(test) { |
| | | casper.start('http://127.0.0.1:8080/#!pl', function() { |
| | | test.assertTitleMatches(/odjazdy/i, 'Page title: ...odjazdy...'); |
| | | casper.start('http://127.0.0.1:8080/#!en', function() { |
| | | test.assertTitleMatches(/departures/i, 'Page title: ...departures...'); |
| | | }); |
| | | |
| | | casper.wait(200, function() { |
| | | test.assertSelectorHasText( |
| | | '[data-translate=header_line]', |
| | | 'Linia', |
| | | 'Translation: Line -> Linia' |
| | | 'Line', |
| | | 'Translation: Linia -> Line' |
| | | ); |
| | | }); |
| | | |