Commit c87ea290 authored by luxcem's avatar luxcem


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
'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 () {
page = require('./main.po');
it('should include jumbotron with correct data', function() {
expect(page.h1El.getText()).toBe('\'Allo, \'Allo!');
expect(page.imgEl.getAttribute('alt')).toBe('I\'m Yeoman');
it('list more than 5 awesome things', function () {
Copyright (C) 2015 Arnaud Fabre <>
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
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 @@
<div class="footer">
Site hébergé par <a href="">La Quadrature du Net</a>
- <a href=""></a>
- <a href=""> Source</a>
'use strict';
.controller('NavbarCtrl', function ($scope) {
$ = 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="">
<span class="glyphicon glyphicon-home"></span> Gulp Angular
<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 class="nav navbar-nav navbar-right">
<li>Current date: {{ date | date:'yyyy-MM-dd' }}</li>
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