Telegram Web, preconfigured for usage in I2P.
http://web.telegram.i2p/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.4 KiB
54 lines
1.4 KiB
8 years ago
|
'use strict'
|
||
8 years ago
|
/* global describe, it, inject, expect, beforeEach, xit */
|
||
|
|
||
8 years ago
|
describe('AppLangSelectController', function () {
|
||
8 years ago
|
var $controller, $scope
|
||
8 years ago
|
|
||
8 years ago
|
beforeEach(module('ui.bootstrap'))
|
||
|
beforeEach(module('myApp.services'))
|
||
|
beforeEach(module('myApp.controllers'))
|
||
8 years ago
|
|
||
|
beforeEach(function () {
|
||
|
inject(function (_$controller_, _$rootScope_, _, Storage, ErrorService, AppRuntimeManager) {
|
||
8 years ago
|
$controller = _$controller_
|
||
8 years ago
|
$scope = _$rootScope_.$new()
|
||
|
$controller('AppLangSelectController', {
|
||
|
$scope: $scope,
|
||
|
_: _,
|
||
|
Storage: Storage,
|
||
|
ErrorService: ErrorService,
|
||
|
AppRuntimeManager: AppRuntimeManager
|
||
8 years ago
|
})
|
||
|
})
|
||
|
})
|
||
8 years ago
|
|
||
|
it('holds the supportedLocales', function () {
|
||
8 years ago
|
expect($scope.supportedLocales).toBeDefined()
|
||
|
})
|
||
8 years ago
|
|
||
|
it('holds langNames', function () {
|
||
8 years ago
|
expect($scope.langNames).toBeDefined()
|
||
|
})
|
||
8 years ago
|
|
||
|
it('holds the current locale', function () {
|
||
8 years ago
|
expect($scope.curLocale).toBeDefined()
|
||
|
})
|
||
8 years ago
|
|
||
|
it('has a locale form', function () {
|
||
8 years ago
|
expect($scope.form).toBeDefined()
|
||
|
expect($scope.form.locale).toBeDefined()
|
||
|
})
|
||
8 years ago
|
|
||
|
it('allows to select a locale', function () {
|
||
8 years ago
|
expect($scope.localeSelect).toBeDefined()
|
||
|
})
|
||
8 years ago
|
|
||
|
describe('when the user switches the locale', function () {
|
||
|
describe('and confirms the dialogue', function () {
|
||
|
xit('reloads the app', function (done) {
|
||
8 years ago
|
done()
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
})
|