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

Unified Diff: dart/third_party/pkg/js/test/js/browser_tests_bootstrap.js

Issue 57393002: Version 0.8.10.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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: dart/third_party/pkg/js/test/js/browser_tests_bootstrap.js
===================================================================
--- dart/third_party/pkg/js/test/js/browser_tests_bootstrap.js (revision 29787)
+++ dart/third_party/pkg/js/test/js/browser_tests_bootstrap.js (working copy)
@@ -1,99 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-var x = 42;
-
-var _x = 123;
-
-var myArray = ["value1"];
-
-var foreignDoc = (function(){
- var doc = document.implementation.createDocument("", "root", null);
- var element = doc.createElement('element');
- element.setAttribute('id', 'abc');
- doc.documentElement.appendChild(element);
- return doc;
-})();
-
-function razzle() {
- return x;
-}
-
-function getTypeOf(o) {
- return typeof(o);
-}
-
-function varArgs() {
- var args = arguments;
- var sum = 0;
- for (var i = 0; i < args.length; ++i) {
- sum += args[i];
- }
- return sum;
-}
-
-function Foo(a) {
- this.a = a;
-}
-
-Foo.b = 38;
-
-Foo.prototype.bar = function() {
- return this.a;
-}
-Foo.prototype.toString = function() {
- return "I'm a Foo a=" + this.a;
-}
-
-var container = new Object();
-container.Foo = Foo;
-
-function isArray(a) {
- return a instanceof Array;
-}
-
-function checkMap(m, key, value) {
- if (m.hasOwnProperty(key))
- return m[key] == value;
- else
- return false;
-}
-
-function invokeCallback() {
- return callback();
-}
-
-function invokeCallbackWith11params() {
- return callbackWith11params(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
-}
-
-function returnElement(element) {
- return element;
-}
-
-function getElementAttribute(element, attr) {
- return element.getAttribute(attr);
-}
-
-function addClassAttributes(list) {
- var result = "";
- for (var i=0; i<list.length; i++) {
- result += list[i].getAttribute("class");
- }
- return result;
-}
-
-function getNewDivElement() {
- return document.createElement("div");
-}
-
-function testJsMap(callback) {
- var result = callback();
- return result['value'];
-}
-
-function Bar() {
- return "ret_value";
-}
-Bar.foo = "property_value";
« no previous file with comments | « dart/third_party/pkg/js/test/js/browser_tests.html ('k') | dart/third_party/pkg/js/test/js_wrapping/browser_tests.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698