<!DOCTYPE html>
<!--
Copyright (C) 2016 The Android Open Source Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>gr-editable-content</title>

<script src="../../../bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<script src="../../../bower_components/web-component-tester/browser.js"></script>
<script src="../../../bower_components/iron-test-helpers/mock-interactions.js"></script>

<link rel="import" href="gr-editable-content.html">

<test-fixture id="basic">
  <template>
    <gr-editable-content></gr-editable-content>
  </template>
</test-fixture>

<script>
  suite('gr-editable-content tests', function() {
    var element;

    setup(function() {
      element = fixture('basic');
    });

    test('save event', function(done) {
      element._newContent = 'foo';
      element.addEventListener('editable-content-save', function(e) {
        assert.equal(e.detail.content, 'foo');
        done();
      });
      MockInteractions.tap(element.$$('gr-button[primary]'));
    });

    test('cancel event', function(done) {
      element.addEventListener('editable-content-cancel', function() {
        done();
      });
      MockInteractions.tap(element.$$('gr-button:not([primary])'));
    });

    test('editing content updates', function() {
      element.content = 'current content';
      element._newContent = 'stale content';
      element.editing = true;
      assert.equal(element._newContent, 'current content');
    });
  });
</script>
