Permalink
Browse files

Revision created by MOE tool push_codebase.

MOE_MIGRATION=


git-svn-id: http://closure-library.googlecode.com/svn/trunk@137 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
dtbentley
dtbentley committed May 17, 2010
1 parent 512e4ad commit f223bac1f1613e0919ebc6dc6087855977612351
Showing 1,197 changed files with 6,102 additions and 16,434 deletions.
View
@@ -0,0 +1,6 @@
+# This is a list of contributors to the Closure Library.
+
+# Names should be added to this file like so:
+# Name or Organization <email address>
+
+Google Inc.
View
@@ -1,20 +1,4 @@
<!DOCTYPE html>
-<!--
-Copyright 2009 Google Inc.
-
-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.
--->
-
<html>
<head>
<title>Closure - All JsUnit Tests</title>
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright 2009 The Closure Library Authors. All Rights Reserved.
"""Utility for Closure Library dependency calculation.
@@ -76,7 +76,8 @@ def _GetOptionsParser():
parser.add_option('-f',
'--compiler_flags',
dest='compiler_flags',
- action='store',
+ default=[],
+ action='append',
help='Additional flags to pass to the Closure compiler.')
parser.add_option('--output_file',
dest='output_file',
View
2 closure/bin/build/depstree.py 100755 → 100644
@@ -1,4 +1,4 @@
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright 2009 The Closure Library Authors. All Rights Reserved.
"""Class to represent a full Closure Library dependency tree.
View
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright 2009 The Closure Library Authors. All Rights Reserved.
"""Unit test for depstree."""
View
2 closure/bin/build/depswriter.py 100755 → 100644
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright 2009 The Closure Library Authors. All Rights Reserved.
"""Generates out a Closure deps.js file given a list of JavaScript sources.
View
2 closure/bin/build/jscompiler.py 100755 → 100644
@@ -1,4 +1,4 @@
-# Copyright 2010 Google Inc. All Rights Reserved.
+# Copyright 2010 The Closure Library Authors. All Rights Reserved.
"""Utility to use the Closure Compiler CLI from Python."""
View
2 closure/bin/build/source.py 100755 → 100644
@@ -1,4 +1,4 @@
-# Copyright 2009 Google Inc. All Rights Reserved.
+# Copyright 2009 The Closure Library Authors. All Rights Reserved.
"""Scans a source JS file for its provided and required namespaces.
View
2 closure/bin/build/source_test.py 100755 → 100644
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2010 Google Inc. All Rights Reserved.
+# Copyright 2010 The Closure Library Authors. All Rights Reserved.
"""Unit test for source."""
View
2 closure/bin/build/treescan.py 100755 → 100644
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
-# Copyright 2010 Google Inc. All Rights Reserved.
+# Copyright 2010 The Closure Library Authors. All Rights Reserved.
"""Shared utility functions for scanning directory trees."""
View
4 closure/bin/calcdeps.py 100755 → 100644
@@ -291,7 +291,9 @@ def GetDepsLine(dep, base_path):
base_path: The path to Closure's base.js including filename.
"""
return 'goog.addDependency("%s", %s, %s);' % (
- GetRelpath(dep.filename, base_path), dep.provides, dep.requires)
+ os.path.normpath(
+ GetRelpath(dep.filename, base_path)).replace('\\', '\\\\'),
+ dep.provides, dep.requires)
def GetRelpath(path, start):
@@ -1,16 +1,4 @@
-// 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.
-
-// Copyright 2006 Google Inc. All Rights Reserved
+// Copyright 2006 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -27,6 +15,9 @@
/**
* @fileoverview Utilities for manipulating arrays.
*
+*
+*
+*
*/
@@ -56,7 +47,7 @@ goog.array.peek = function(array) {
goog.array.ARRAY_PROTOTYPE_ = Array.prototype;
-// NOTE: Since most of the array functions are generic it allows you to
+// NOTE(user): Since most of the array functions are generic it allows you to
// pass an array-like object. Strings have a length and are considered array-
// like. However, the 'in' operator does not work on strings so we cannot just
// use the array path even if the browser supports indexing into strings. We
@@ -1,21 +1,7 @@
<!DOCTYPE html>
-<!--
-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.
--->
-
<html>
<!--
-Copyright 2006 Google Inc. All Rights Reserved
+Copyright 2006 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
@@ -1,16 +1,4 @@
-// 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.
-
-// Copyright 2008 Google Inc. All Rights Reserved
+// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -32,6 +20,8 @@
* for type-inference. For example, <code>goog.asserts.assert(foo)</code>
* will restrict <code>foo</code> to a truthy value.
*
+*
+ * @author agrieve@google.com (Andrew Grieve)
*/
goog.provide('goog.asserts');
@@ -40,7 +30,7 @@ goog.provide('goog.asserts.AssertionError');
goog.require('goog.debug.Error');
goog.require('goog.string');
-// TODO: Add return values for all these functions, so that they
+// TODO(nicksantos): Add return values for all these functions, so that they
// can be chained like:
// eatNumber(goog.asserts.isNumber(foo));
// for more lisp-y asserts.
@@ -1,21 +1,7 @@
<!DOCTYPE html>
-<!--
-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.
--->
-
<html>
<!--
-Copyright 2008 Google Inc. All Rights Reserved
+Copyright 2008 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
@@ -1,16 +1,4 @@
-// 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.
-
-// Copyright 2008 Google Inc. All Rights Reserved
+// Copyright 2008 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -52,6 +40,7 @@
* // Stop the deferred function call (does nothing if it's not active).
* deferredCall.stop();
*
+*
*/
@@ -1,26 +1,12 @@
<!DOCTYPE html>
-<!--
-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.
--->
-
<html>
<!--
-Copyright 2008 Google Inc. All Rights Reserved
+Copyright 2008 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
-->
-<!---->
+<!-- Author: aandrey@google.com (Andrey Adaikin) -->
<head>
<title>Closure Unit Tests - goog.async.ConditionalDelay</title>
<script src="../base.js"></script>
@@ -1,16 +1,4 @@
-// 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.
-
-// Copyright 2007 Google Inc. All Rights Reserved
+// Copyright 2007 The Closure Library Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -29,6 +17,7 @@
* invoked after a delay, especially when that delay is frequently restarted.
* Examples include delaying before displaying a tooltip, menu hysteresis,
* idle timers, etc.
+*
* @see ../demos/timers.html
*/
@@ -1,21 +1,7 @@
<!DOCTYPE html>
-<!--
-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.
--->
-
<html>
<!--
-Copyright 2007 Google Inc. All Rights Reserved
+Copyright 2007 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
Oops, something went wrong.

0 comments on commit f223bac

Please sign in to comment.