describe("", function() {
  var rootEl;
  beforeEach(function() {
    rootEl = browser.rootEl;
    browser.get("examples/example-example77/index.html");
  });
  
  it('should check ng-submit', function() {
    expect(element(by.binding('list')).getText()).toBe('list=[]');
    element(by.css('#submit')).click();
    expect(element(by.binding('list')).getText()).toContain('hello');
    expect(element(by.model('text')).getAttribute('value')).toBe('');
  });
  it('should ignore empty strings', function() {
    expect(element(by.binding('list')).getText()).toBe('list=[]');
    element(by.css('#submit')).click();
    element(by.css('#submit')).click();
    expect(element(by.binding('list')).getText()).toContain('hello');
   });
});