Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(664)

Unified Diff: chrome/test/data/extensions/platform_apps/extension_view/src_attribute/main.js

Issue 873933002: Add <extensionview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move test files out of shim/ directory Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/extension_view/src_attribute/main.js
diff --git a/chrome/test/data/extensions/platform_apps/extension_view/src_attribute/main.js b/chrome/test/data/extensions/platform_apps/extension_view/src_attribute/main.js
new file mode 100644
index 0000000000000000000000000000000000000000..02e630f92ea63ce35e149dd6b4135c5e4bc8d51a
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/extension_view/src_attribute/main.js
@@ -0,0 +1,23 @@
+// 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 checkSrc = function(element, expectedValue) {
+ chrome.test.assertEq(expectedValue, element.src);
+};
+
+onload = function() {
+ chrome.test.runTests([
+ function extensionView() {
+ chrome.test.succeed();
+ var expectedSrcOne = 'data:text/html,<body>One</body>';
+ var expectedSrcTwo = 'data:text/html,<body>Two</body>';
+
+ var extensionview = document.querySelector('extensionview');
+ checkSrc(extensionview, expectedSrcOne);
+
+ extensionview.setAttribute('src', expectedSrcTwo);
+ checkSrc(extensionview, expectedSrcTwo);
+ }
+ ]);
+};

Powered by Google App Engine
This is Rietveld 408576698