Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / automation / sites / tree_change.html
blobc51eed453342a9254d4a216be65584e274635955
1 <!--
2 * Copyright 2015 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file.
5 -->
6 <html>
7 <head>
8 <title>Automation Tests - Tree change</title>
9 </head>
10 <body>
11 <ul id="list">
12 <li>One</li>
13 <li>Two</li>
14 </ul>
15 <button id="add">Add</button>
16 <button id="remove">Remove</button>
18 <script>
19 document.getElementById('add').addEventListener('click', function() {
20 var li = document.createElement('li');
21 li.innerText = "New";
22 document.getElementById('list').appendChild(li);
23 });
24 document.getElementById('remove').addEventListener('click', function() {
25 var list = document.getElementById('list');
26 list.removeChild(list.lastElementChild);
27 });
28 </script>
30 </body>
31 </html>