Skip to content

Commit

Permalink
updating third party wicked good xpath to e33a3876a6d592b824942751d86…
Browse files Browse the repository at this point in the history
…ba5f2b08a3dc5

removing the *_test.html files we don't care about
Adding a README about where this is from

Fixes SeleniumHQ#1040
  • Loading branch information
lukeis committed Sep 24, 2015
1 parent b097242 commit 423df21
Show file tree
Hide file tree
Showing 36 changed files with 665 additions and 1,013 deletions.
9 changes: 9 additions & 0 deletions third_party/js/wgxpath/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
wgxpath - Wicked Good XPath

https://github.com/google/wicked-good-xpath

The source in this directory is from:

https://github.com/google/wicked-good-xpath/tree/e33a3876a6d592b824942751d86ba5f2b08a3dc5/src

excluding the *_test* files.
28 changes: 26 additions & 2 deletions third_party/js/wgxpath/binaryExpr.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @license
* The MIT License
*
* Copyright (c) 2007 Cybozu Labs, Inc.
* Copyright (c) 2012 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

/**
* @fileoverview A class representing operations on binary expressions.
* @author moz@google.com (Michael Zhou)
*/


goog.provide('wgxpath.BinaryExpr');

goog.require('wgxpath.DataType');
Expand Down
134 changes: 0 additions & 134 deletions third_party/js/wgxpath/binaryExpr_test.html

This file was deleted.

16 changes: 8 additions & 8 deletions third_party/js/wgxpath/compile.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
python ../closure-library/closure/bin/calcdeps.py \
--path ../closure-library \
--path . \
--input export.js \
python ../closure-library/closure/bin/build/closurebuilder.py \
--root ../closure-library \
--root . \
--namespace wgxpath \
--output_mode compiled \
--compiler_jar ../closure-compiler/build/compiler.jar \
--compiler_flags="--compilation_level=ADVANCED_OPTIMIZATIONS" \
--compiler_flags="--output_wrapper=(function(){%output%})()" \
--compiler_flags="--use_types_for_optimization" \
--compiler_flags="--warning_level=VERBOSE" \
--compiler_flags "--compilation_level=ADVANCED_OPTIMIZATIONS" \
--compiler_flags "--output_wrapper=(function(){%output%})()" \
--compiler_flags "--use_types_for_optimization" \
--compiler_flags "--warning_level=VERBOSE" \
> wgxpath.install.js
27 changes: 26 additions & 1 deletion third_party/js/wgxpath/context.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @license
* The MIT License
*
* Copyright (c) 2007 Cybozu Labs, Inc.
* Copyright (c) 2012 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

/**
* @fileoverview Context information about nodes in their nodeset.
* @author evanrthomas@google.com (Evan Thomas)
*/

goog.provide('wgxpath.Context');
Expand Down
40 changes: 0 additions & 40 deletions third_party/js/wgxpath/context_test.html

This file was deleted.

27 changes: 26 additions & 1 deletion third_party/js/wgxpath/dataType.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @license
* The MIT License
*
* Copyright (c) 2007 Cybozu Labs, Inc.
* Copyright (c) 2012 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

/**
* @fileoverview Enumeration of internal data types.
* @author moz@google.com (Michael Zhou)
*/

goog.provide('wgxpath.DataType');
Expand Down
27 changes: 26 additions & 1 deletion third_party/js/wgxpath/expr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @license
* The MIT License
*
* Copyright (c) 2007 Cybozu Labs, Inc.
* Copyright (c) 2012 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

/**
* @fileoverview An abstract class representing basic expressions.
* @author moz@google.com (Michael Zhou)
*/

goog.provide('wgxpath.Expr');
Expand Down
27 changes: 26 additions & 1 deletion third_party/js/wgxpath/filterExpr.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
// Copyright 2012 Google Inc. All Rights Reserved.
/**
* @license
* The MIT License
*
* Copyright (c) 2007 Cybozu Labs, Inc.
* Copyright (c) 2012 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/

/**
* @fileoverview A class representing operations on filter expressions.
* @author moz@google.com (Michael Zhou)
*/

goog.provide('wgxpath.FilterExpr');
Expand Down
Loading

0 comments on commit 423df21

Please sign in to comment.