Commit c87ea290 authored by luxcem's avatar luxcem

licence

parent b9828ce6
This diff is collapsed.
{
"extends": "../.jshintrc",
"globals": {
"browser": false,
"element": false,
"by": false,
"$": false,
"$$": false
}
}
/**
* This file uses the Page Object pattern to define the main page for tests
* https://docs.google.com/presentation/d/1B6manhG0zEXkC-H-tPo2vwU06JhL8w9-XCF9oehXzAQ
*/
'use strict';
var MainPage = function() {
this.jumbEl = element(by.css('.jumbotron'));
this.h1El = this.jumbEl.element(by.css('h1'));
this.imgEl = this.jumbEl.element(by.css('img'));
this.thumbnailEls = element(by.css('body')).all(by.repeater('awesomeThing in awesomeThings'));
};
module.exports = new MainPage();
'use strict';
describe('The main view', function () {
var page;
beforeEach(function () {
browser.get('http://localhost:3000/index.html');
page = require('./main.po');
});
it('should include jumbotron with correct data', function() {
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
expect(page.imgEl.getAttribute('src')).toMatch(/assets\/images\/yeoman.png$/);
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
});
it('list more than 5 awesome things', function () {
expect(page.thumbnailEls.count()).toBeGreaterThan(5);
});
});
Copyright (C) 2015 Arnaud Fabre <af@laquadrature.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
All files under the src directory (except the assets directory) are under the
terms of GNU General Public License as published by the
Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
<div class="footer"> <div class="footer">
Site hébergé par <a href="https://www.laquadrature.net/fr">La Quadrature du Net</a> Site hébergé par <a href="https://www.laquadrature.net/fr">La Quadrature du Net</a>
- <a href="mailto:contact@laquadrature.net">contact@laquadrature.net</a> - <a href="mailto:contact@laquadrature.net">contact@laquadrature.net</a>
- <a href="https://git.laquadrature.net/la-quadrature-du-net/sous-surveillance"> Source</a>
</div> </div>
</div> </div>
'use strict';
angular.module('soussurveillance')
.controller('NavbarCtrl', function ($scope) {
$scope.date = new Date();
});
<nav class="navbar navbar-static-top navbar-inverse" ng-controller="NavbarCtrl">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="https://github.com/Swiip/generator-gulp-angular">
<span class="glyphicon glyphicon-home"></span> Gulp Angular
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
<ul class="nav navbar-nav">
<li class="active"><a ng-href="#">Home</a></li>
<li><a ng-href="#">About</a></li>
<li><a ng-href="#">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>Current date: {{ date | date:'yyyy-MM-dd' }}</li>
</ul>
</div>
</div>
</nav>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment