Max
ad9bfbd4ad
+ Remove function ( #163 )
2018-11-06 10:17:48 -05:00
3timeslazy
8bb7941864
rename utils.LOG -> utils.PRINT ( #162 )
...
* rename utils.LOG -> utils.PRINT
* rename utils.Logs -> utils.Print
2018-11-05 19:31:26 -05:00
3timeslazy
10d0de088b
Added one more test case into pkg/stdlib/datetime ( #161 )
2018-11-05 14:48:00 -05:00
3timeslazy
e4a7b581f0
added DATE_DAYOFYEAR, DATE_MILLISECOND, DATE_LEAPYEAR, DATE_QUARTER, DATE_DAYS_IN_MONTH, DATE_FORMAT functions ( #157 )
2018-11-05 11:54:36 -05:00
Tim Voronov
5e6701f1c1
Added panic recovery mechanism ( #158 )
2018-11-05 11:45:33 -05:00
3timeslazy
7fd5af6110
DATE_HOUR, DATE_MINUTE and DATE_SECOND functions ( #156 )
2018-11-04 10:06:38 -05:00
3timeslazy
3462923085
Feature/#8 datetime ( #154 )
2018-11-01 16:58:22 -04:00
3timeslazy
612705ca3a
Feature/#8 datetime ( #153 )
2018-10-31 19:26:36 -04:00
3timeslazy
d8ae6cca8b
Feature/#8 datetime ( #152 )
2018-10-30 15:59:18 -04:00
3timeslazy
f6e465d556
Feature/#106 fmt function ( #151 )
2018-10-29 16:57:39 -04:00
3timeslazy
b097527cd3
change comment ( #150 )
2018-10-28 14:15:54 -04:00
Tim Voronov
3472630e6f
Bug/#142 clauses and statements ( #148 )
2018-10-28 01:45:26 -04:00
Artem Kartasov
e6fd33ac1d
add unit tests for runtime/expressions - block ( #143 )
2018-10-28 00:38:53 -04:00
Artem Kartasov
7da10c5a70
add unit tests for runtime/core - value ( #144 )
2018-10-28 00:37:52 -04:00
Artem Kartasov
6e06652a5a
rename a test items description ( #147 )
2018-10-28 00:37:09 -04:00
Artem Kartasov
c25b8e3610
add unit tests for runtime/expressions - param ( #145 )
2018-10-28 00:36:30 -04:00
Artem Kartasov
8c95f3b12e
add unit test for runtime/expressions - return ( #146 )
2018-10-27 13:12:40 -04:00
Tim Voronov
b188e7a4f3
Updated in parser
2018-10-25 18:17:49 -04:00
3timeslazy
8575863c2b
Feature/#10 merge recursive ( #140 )
2018-10-25 08:01:25 -04:00
Tim Voronov
549b4abd3b
Feature/#5 collect keyword alt ( #141 )
...
Implemented COLLECT key word
2018-10-24 21:30:05 -04:00
Tim Voronov
b02c554214
Removed redundant code
2018-10-24 20:13:03 -04:00
Tim Voronov
19dbf12296
Added some benchmarks ( #139 )
2018-10-24 19:40:57 -04:00
3timeslazy
ebea64da37
Feature/#10 values ( #128 )
...
* added VALUES function
* updated object.Compare
2018-10-22 18:24:53 -04:00
Tim Voronov
685c5872aa
Added possibility to use string literals as object poperties
2018-10-22 15:11:00 -04:00
Tim Voronov
e0874d25f7
minor tweak in runtime.Options
2018-10-17 22:57:36 -04:00
Tim Voronov
17b52fdfd5
Renamed compiler file
2018-10-17 15:00:08 -04:00
Tim Voronov
e5ca63bcdb
Bug/binary expression ( #135 )
...
Added boolean binary operator
2018-10-17 11:41:40 -04:00
Paul
dd13878f80
Implement DOWNLOAD function ( #132 )
2018-10-17 08:19:44 -04:00
Tim Voronov
7dc1288bae
Code coverage ( #134 )
...
* Added code coverage report
2018-10-16 20:50:06 -04:00
Tim Voronov
3939800299
#123 Renamed 'innerHtml' to 'innerHTML' ( #133 )
2018-10-16 19:33:02 -04:00
Tim Voronov
d7df80df9d
Removed unneccessary goroutine
2018-10-15 21:56:07 -04:00
Tim Voronov
cf70088fd8
#117 Added support for multiline strings ( #129 )
2018-10-15 18:50:55 -04:00
Tim Voronov
18b76be3fc
Some tweaks in EventBroker
2018-10-15 17:48:30 -04:00
Tim Voronov
1d6a23fa96
Refactoring/new event broker ( #127 )
...
* Refactored EventBroker
* Improved event loop cancellation
2018-10-15 17:17:15 -04:00
esell
e64eb18ccf
add unit tests for runtime/core - source ( #126 )
2018-10-15 12:45:29 -04:00
3timeslazy
0f3128e842
Bug into object function KEEP ( #121 )
2018-10-14 15:22:41 -04:00
3timeslazy
6df08a60cb
Rewrite comments, closing #118
2018-10-14 13:06:27 -04:00
Paul
5db8df55db
Implement FROM_BASE64 function ( #115 )
2018-10-14 11:45:06 -04:00
Tim Voronov
91093d6d25
Formatting
2018-10-13 21:08:18 -04:00
Tim Voronov
5f94b77a39
Feature/#7 numeric functions ( #116 )
...
* #7 Added ABS
* #7 Added ACOS
* #7 Added ASIN
* #7 Added ATAN
* #7 Added ATAN2
* #7 Added AVERAGE
* #7 Added CEIL
* #7 Added COS
* #7 Added DEGREES
* #7 Added EXP
* #7 Added EXP2
* #7 Added FLOOR
* #7 Added LOG
* #7 Added LOG2
* #7 Added LOG10
* #7 Added MAX
* #7 Added MEDIAN
* #7 Added MIN
* #7 Added PERCENTILE
* #7 Added PI
* #7 Added POW
* #7 Added RADIANS
* #7 Added RAND
* #7 Added RANGE
* #7 Added ROUND
* #7 Added SIN
* #7 Added SQRT
* #7 Added TAN
* #7 Added SUM
* #7 Added STDDEV_POPULATION
* #7 Added STDDEV_SAMPLE, VARIANCE_POPULATION, VARIANCE_SAMPLE
2018-10-13 21:07:28 -04:00
Paul
2417be3f9d
Implement PDF function, closes #20 ( #114 )
2018-10-13 18:12:46 -04:00
3timeslazy
5d0d9ec537
Feature/#10 zip ( #113 )
...
* added prototype of ZIP function
* add unit test for ZIP function
* change comment for ZIP function
* added some new tests
* small change in unit tests
* added ZIP function
2018-10-13 14:29:10 -04:00
3timeslazy
446ce3ead5
added MERGE object function ( #111 )
...
* add pkg/stdlib/objects Length function
* rename lenght.go -> length.go
* fix tests according to other tests
* add new tests to length tests
* delete objects method Length
* add objects method Has
* add objects function Keys
* small fixes in Keys and Has functions
* change Has function
* unit tests for Keys function
* add unit tests for merge. also little change in lib.go
* add doc to Keys function
* Merge function prototype
* add unit tests for KEEP function
* added KEEP function
* added doc for KEYS function
* update lib.go
* update lib.go
* upd merge prototype
* addded isEqualObjects function to objects tests
* change object method Compare
* added unit tests for Compare method
* changed Compare method
* fix Compare method
* rename method Clone to Copy
* added Cloneable interface
* added Value to Cloneable interface
* implemented Cloneable intefrace by array
* added some more unit tests for values.Array
* fix values.Array.Compare method
* added one more unit test
* implemented Cloneable interface by Object
* unit tests for Object.Clone
* move core.IsCloneable to value.go
* change Clone function
* move IsClonable to package values
* updated MERGE unit tests
* added MERGE function
* added MERGE to lib
* added one more test
* changed MERGE function
2018-10-13 13:04:00 -04:00
Tim Voronov
42757a2a5a
Feature/#105 elements count ( #109 )
...
* #105 Added ELEMENTS_COUNT function
* Some minor updates
* Invalid return type
2018-10-12 21:52:27 -04:00
Tim Voronov
495cc34d77
#104 Added NAVIGATE_FORWARD function ( #108 )
2018-10-12 16:30:17 -04:00
Tim Voronov
93d5df5fe7
Feature/#103 navigate back ( #107 )
...
* #103 Added NAVIGATE_BACK function
* Commented out debugging test
* Updated implementation
2018-10-12 16:02:53 -04:00
3timeslazy
f91fbf6f8c
Feature/#95 deepclone ( #101 )
...
* rename method Clone to Copy
* added Cloneable interface
* added Value to Cloneable interface
* implemented Cloneable intefrace by array
* implemented Cloneable interface by Object
* unit tests for Object.Clone
* move core.IsCloneable to value.go
* change Clone function
* move IsClonable to package values
2018-10-12 11:58:08 -04:00
Tim Voronov
570c1b4548
Bug/#80 element not found ( #99 )
...
* SOme work
* Some refactoring
* Work on stabalizing queries
* Removed unit test for debugging
* Fixed linter errors
* Added logging when NodeID is 0
* Added --time param to CLI
2018-10-11 12:39:03 -04:00
esell
ad21fa6482
add unit tests for runtime/core - scope ( #94 )
...
* add unit tests for runtime/core - scope
* add unit tests for runtime/core - scope
* add unit tests for runtime/core - scope
2018-10-11 11:39:52 -04:00
3timeslazy
54c9857862
Bugfix/#97 array compare ( #98 )
...
* added some more unit tests for values.Array
* fix values.Array.Compare method
* added one more unit test
2018-10-11 09:54:20 -04:00
3timeslazy
b74e490624
Bugfix/#89 compare ( #93 )
...
* change object method Compare
* added unit tests for Compare method
* changed Compare method
* fix Compare method
2018-10-10 13:04:15 -04:00
3timeslazy
0bc4280d3f
Added object 'KEEP' function ( #88 )
...
* add unit tests for KEEP function
* added KEEP function
* added doc for KEYS function
* addded isEqualObjects function to objects tests
2018-10-09 16:13:00 -04:00
Adam Argo
c498da4a21
change WaitForNavigation to avoid race condition/panic sending on closed channel ( #84 )
2018-10-09 09:19:58 -04:00
Adam Argo
3829dffb91
Adds function to type value into input ( #81 )
...
* adds function to type input
* changes per feedback
* more PR feedback changes
* add context.Background()
2018-10-08 23:07:08 -04:00
Tim Voronov
05a7582bba
Feature/inner html element child ( #82 )
...
* SOme wokrd
* Renamed example
* Updated example
2018-10-08 20:20:40 -04:00
esell
0004667df6
add unit tests for runtime/core - helpers ( #78 )
...
* add unit tests for runtime/core - helpers
* update helpers to ignore struct/unsafe ptr
2018-10-08 18:30:36 -04:00
Tim Voronov
da446892b5
Fixed incorrectly compiled LIMIT clause.
2018-10-08 16:04:49 -04:00
Tim Voronov
d3f1a2d88d
Fixed iterator_test
2018-10-08 11:29:31 -04:00
Tim Voronov
2ff668e643
Minor clean up
2018-10-07 22:56:01 -04:00
Tim Voronov
a3d3fe727d
Bug/#31 ua ( #73 )
...
* Made custom and random UA optional
* Added pirvate context keys
2018-10-07 22:18:57 -04:00
Tim Voronov
03d9f2e561
Moved html drivers outside of standard library
2018-10-07 21:32:30 -04:00
Tim Voronov
957490efec
Feature/#19 proxy ( #72 )
...
* #19 Some work on proxy
* Fixed linter issue
2018-10-07 21:23:36 -04:00
Tim Voronov
8f7edaedee
Minor tweaks
2018-10-07 21:04:36 -04:00
Tim Voronov
4898f1b9cb
Merge branch 'master' of github.com:MontFerret/ferret
2018-10-07 20:15:53 -04:00
Tim Voronov
fa466af940
Added optional timeout to NAVIGATE
2018-10-07 20:15:41 -04:00
Paul
e8adf42654
Implement SCREENSHOT function, closes #21 ( #67 )
2018-10-07 19:02:27 -04:00
Tim Voronov
fa5a10925b
#10 Added 'NewLib' function
2018-10-07 17:58:22 -04:00
Tim Voronov
0dfd58dc89
Feature/#1 array comparison operators ( #71 )
...
* #1 Added ALL IN
* #1 Completed Array operator
* #1 Fixed linting issues
2018-10-07 17:54:02 -04:00
3timeslazy
809a51b217
Added objects 'Has' and 'Keys' function ( #69 )
...
* add pkg/stdlib/objects Length function
* rename lenght.go -> length.go
* fix tests according to other tests
* add new tests to length tests
* delete objects method Length
* add objects method Has
* add objects function Keys
* small fixes in Keys and Has functions
* change Has function
* unit tests for Keys function
2018-10-07 17:53:41 -04:00
=
a51faf8d05
change Object.Get(key values.String) (core.Value, bool) to Object.Get(key values.String) (core.Value, values.Boolean) for consistency.
2018-10-07 23:55:12 +03:00
SumLare
c97e12d90f
Add like function test
2018-10-07 15:29:09 +03:00
SumLare
0a3e488af9
Add like function implementation
2018-10-07 15:22:04 +03:00
Tim Voronov
3f1ca554e2
Added DISTINCT clause as an iterator
2018-10-07 01:23:35 -04:00
Tim Voronov
e0a7a8e6a1
Refactored types lib
2018-10-07 01:07:44 -04:00
Tim Voronov
e64ad4ec0e
Feature/#33 wait class function ( #63 )
...
* #33 Lib cleanup. Added WAIT_CLASS and WAIT_CLASS_ALL functions
* #33 Fixed attr update
* #33 HTMLElement.WaitForClass
* #33 Updated HTMLDocument.WaitForClass
2018-10-06 22:33:39 -04:00
Pangoraw
fde8bfcc5d
Update functions descriptions for regexp
2018-10-06 09:53:44 +02:00
Tim Voronov
ec2d6a659b
Feature/#9 array functions ( #57 )
...
* #9 Added 'APPEND' function
* #9 Added 'FIRST' function
* #9 Added 'FLATTEN' function
* #9 Added 'INTERSECTION' function
* #9 Added 'LAST' function
* #9 Added 'MINUS' function
* #9 Added 'NTH' function
* #9 Added 'OUTERSECTION' function
* #9 Added 'POP' function
* #9 Added 'POSITION' function
* #9 Added 'PUSH' function
* Fixed nil pointer exception in value parser
* #9 Added 'REMOVE_NTH' function
* #9 Added 'REMOVE_VALUE' function
* #9 Added 'REMOVE_VALUES' function
* #9 Added 'REVERSE' function
* #9 Added 'SHIFT' function
* #9 Added 'SLICE' function
* Removed meme
* #9 Added 'SORTED' function
* #9 Added SORTED_UNIQUE function
* #9 Added 'UNION' function
* #9 Added 'UNION_DISTINCT' function
* #9 Added 'UNIQUE' function
* #9 Added 'UNSHIFT' function
* #9 Made more strict optional arg validation
* #9 Fixed linting errors
2018-10-05 21:27:34 -04:00
David Landry
24b20f308f
Fix variable name
2018-10-05 20:42:23 -04:00
David Landry
a460cfcf6c
Merge remote-tracking branch 'upstream/master' into cleanup/fix-naming-convention
2018-10-05 20:35:55 -04:00
Tim Voronov
54fb111040
Added custom type as a context key
2018-10-05 20:29:42 -04:00
David Landry
8942a5e584
Missed updating a bunch of identifiers
2018-10-05 19:40:09 -04:00
David Landry
a7ecc90973
Missed renaming some identifiers
2018-10-05 18:30:03 -04:00
David Landry
86083df180
Merge branch 'cleanup/fix-naming-convention' of github.com:davad/ferret into cleanup/fix-naming-convention
2018-10-05 18:27:09 -04:00
David Landry
5188c243f6
Swap var -> const
2018-10-05 18:26:49 -04:00
David Landry
138f39d727
Merge branch 'master' into cleanup/fix-naming-convention
2018-10-05 17:42:28 -04:00
David Landry
5f201de7f9
Use custom type for keying Context
...
See https://blog.golang.org/context#TOC_3.2
2018-10-05 17:38:12 -04:00
David Landry
b970bf5a2b
Fix unused-parameter errors
2018-10-05 17:38:12 -04:00
David Landry
a4ce880d9c
Actually, let's just disable the check for Type
2018-10-05 17:38:12 -04:00
David Landry
31c31247ac
Remove var-declaration errors
2018-10-05 17:38:12 -04:00
David Landry
31cb7c2762
Fix increment-decrement errors
2018-10-05 17:38:12 -04:00
David Landry
a7f8443d7d
Revert changes to autogenerated code
2018-10-05 17:38:12 -04:00
David Landry
90c2c702e4
Rename variables and methods to match styleguide
2018-10-05 17:38:12 -04:00
Tim Voronov
51d794d6c1
Merge pull request #52 from esell/param-test
...
add unit tests for runtime/core - param
2018-10-05 15:49:46 -04:00
Tim Voronov
1b4c7abe2a
Merge pull request #51 from MontFerret/bug/invalid-hashing
...
Fixed hashing
2018-10-05 15:47:18 -04:00
esell
1167d74ed3
add unit tests for runtime/core - param
2018-10-05 13:34:31 -06:00
Tim Voronov
3cb811c636
Fixed hashing
2018-10-05 15:17:22 -04:00
Tim Voronov
1b2a765569
Merge pull request #50 from esell/runtime-tests2
...
add unit tests for runtime/core - function
2018-10-05 13:42:59 -04:00
Tim Voronov
631f452d2a
Merge pull request #49 from esell/runtime-tests
...
more unit test for runtime/core - errors
2018-10-05 12:56:21 -04:00
esell
0b6639fdaf
add unit tests for runtime/core - function
2018-10-05 10:30:54 -06:00
esell
3c78bca385
swap magic numbers for enums in errors_test.go
2018-10-05 10:07:31 -06:00