| Index: chrome/test/data/extensions/platform_apps/extension_view/extension_attribute/main.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/extension_view/extension_attribute/main.js b/chrome/test/data/extensions/platform_apps/extension_view/extension_attribute/main.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eb99434d25b579d24ff2fac2f30873b1fd410836
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/platform_apps/extension_view/extension_attribute/main.js
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +var checkExtension = function(element, expectedValue) {
|
| + chrome.test.assertEq(expectedValue, element.extension);
|
| +};
|
| +
|
| +onload = function() {
|
| + chrome.test.runTests([
|
| + function extensionView() {
|
| + // chrome.test.succeed();
|
| + var firstExtensionId = 'firstExtensionId';
|
| + var secondExtensionId = 'secondExtensionId';
|
| + var src = 'data:text/html,<body>One</body>';
|
| +
|
| + var extensionview = document.querySelector('extensionview');
|
| + extensionview.connect(firstExtensionId, src);
|
| + checkExtension(extensionview, firstExtensionId);
|
| +
|
| + extensionview.setAttribute('extension', secondExtensionId);
|
| + checkExtension(extensionview, firstExtensionId);
|
| + chrome.test.succeed();
|
| + }
|
| + ]);
|
| +};
|
|
|