Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Revision created by MOE tool push_codebase.
Browse files Browse the repository at this point in the history
MOE_MIGRATION=


git-svn-id: http://closure-library.googlecode.com/svn/trunk@137 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information
dtbentley committed May 17, 2010
1 parent 512e4ad commit f223bac
Show file tree
Hide file tree
Showing 1,197 changed files with 6,102 additions and 16,434 deletions.
6 changes: 6 additions & 0 deletions AUTHORS
@@ -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.
16 changes: 0 additions & 16 deletions all_tests.html
@@ -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>
Expand Down
16 changes: 1 addition & 15 deletions alltests.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions closure/bin/build/closurebuilder.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.


"""Utility for Closure Library dependency calculation.
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion closure/bin/build/depstree_test.py 100755 → 100644
@@ -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."""
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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."""

Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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."""
Expand Down
2 changes: 1 addition & 1 deletion 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."""

Expand Down
4 changes: 3 additions & 1 deletion closure/bin/calcdeps.py 100755 → 100644
Expand Up @@ -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):
Expand Down
19 changes: 5 additions & 14 deletions closure/goog/array/array.js
@@ -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.
Expand All @@ -27,6 +15,9 @@
/**
* @fileoverview Utilities for manipulating arrays.
*
*
*
*
*/


Expand Down Expand Up @@ -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
Expand Down
16 changes: 1 addition & 15 deletions closure/goog/array/array_test.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 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.
Expand Down
18 changes: 4 additions & 14 deletions closure/goog/asserts/asserts.js
@@ -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.
Expand All @@ -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');
Expand All @@ -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.
Expand Down
16 changes: 1 addition & 15 deletions closure/goog/asserts/asserts_test.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 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.
Expand Down
15 changes: 2 additions & 13 deletions closure/goog/async/conditionaldelay.js
@@ -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.
Expand Down Expand Up @@ -52,6 +40,7 @@
* // Stop the deferred function call (does nothing if it's not active).
* deferredCall.stop();
*
*
*/


Expand Down
18 changes: 2 additions & 16 deletions closure/goog/async/conditionaldelay_test.html
@@ -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>
Expand Down
15 changes: 2 additions & 13 deletions closure/goog/async/delay.js
@@ -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.
Expand All @@ -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
*/

Expand Down
16 changes: 1 addition & 15 deletions closure/goog/async/delay_test.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.
Expand Down

0 comments on commit f223bac

Please sign in to comment.