David Glasser
ceb37b48c6
Shrinkwrap update.
2013-10-03 15:52:19 -07:00
David Glasser
26af82fcf0
Upgrade lots of package Npm dependencies.
2013-10-03 15:52:19 -07:00
David Glasser
dba5933651
Change package/slice separator in various places to colon from dot.
...
Allow dots in package names.
Change the internal representation of "package specs" inside Slice to be a
{package,slice} object instead of a "spec" string.
library.getSlices now can take EITHER a "spec" string or a {package,slice}
object.
Linker-created slice files also separate the slice name with a colon (so eg, you
get URLs like "/packages/livedata:tests.js" when running package tests). (Maybe
this should use a subdirectory instead?)
2013-08-12 18:05:34 -07:00
Nick Martin
017407301d
Also skip logging test on old safari that doesn't support it.
2013-08-06 11:59:06 -07:00
David Glasser
063c446263
Put a space after the "this timestamp isn't actually from the Log call" question
...
mark.
2013-08-02 16:29:10 -07:00
David Glasser
c22f681d9c
Fix a test in IE8; elsewhere make it actually test what it's trying to test.
2013-08-02 14:57:30 -07:00
David Glasser
4b3cb9d305
Rename api.exportSymbol -> api.export.
2013-07-25 18:54:43 -07:00
David Glasser
060151dd81
test-packages now has no immediate server-side errors (client-side, sure)
...
eliminate accounts-urls package
2013-07-25 18:54:40 -07:00
David Glasser
9f38258b54
Drop all @export lines. Add api.exportSymbol instead.
2013-07-25 18:54:40 -07:00
David Glasser
25a3afff54
- drop where from all on_use/on_test (it is no longer being passed in)
...
- allow `api.use(package, {options})` without where
- fix showdown to use a weak dependency
2013-07-25 18:54:40 -07:00
Geoff Schmidt
3d1c09794f
Comprehensive namespace cleanup.
2013-07-25 18:54:40 -07:00
David Glasser
81e456ae81
Improve log lines file naming on server.
...
We avoid using Error.prepareStackTrace (which the node source map support also
uses) and do some hacky regexp parsing instead. This way, on the server, we get
the filename/line numbers after source map processing.
On the client we continue to get the compiled version... I guess because source
maps are implemented in the developer tools, not directly into the Error object.
(Probably should have gotten parseStack from tools/buildmessage.js instead.)
unbreaks _getCallerDetails tests.
2013-07-12 10:11:31 -07:00
Avital Oliver
f471d0eaa9
Add Log._suppress for spammy logs from tests
2013-07-09 21:52:38 -07:00
David Glasser
760289a437
More logging color tweaks.
...
Yellow looks bad on white, and blue looks meh on black. So stop coloring info
lines, stop using yellow, and only use blue for the header part.
2013-06-18 09:51:00 -07:00
Avital Oliver
7406c73b2a
logging: small bugfix
2013-06-17 14:26:21 -07:00
Slava Kim
fefd11493f
Add comment to _intercepted() function of logging package.
2013-06-17 11:48:28 -07:00
Slava Kim
4c88ed45f7
Imrove comments, clean intercept counter in logging package at the same
...
place we reset the intercepted array.
2013-06-17 11:37:26 -07:00
Slava Kim
4664722b71
Restructure testcases so they are easier to read.
2013-06-17 11:29:55 -07:00
Slava Kim
422edbd4d9
Change the error message.
2013-06-17 11:29:40 -07:00
Slava Kim
160a9a2b06
Add regexp to throwing objects test.
2013-06-14 16:39:42 -07:00
Slava Kim
ce813b496a
Restructure tests a bit.
2013-06-14 16:39:42 -07:00
Slava Kim
f550264054
Clarify and check that incorrect logging doesn't print anything.
2013-06-14 16:39:42 -07:00
David Glasser
ea82e7c4b4
Move PACKAGE/.npm/ to PACKAGE/.npm/package/
...
This is to isolate the NPM dependencies of the package at runtime from the NPM
dependencies of any build-time plugins in the package, which live in
PACKAGE/.npm/plugin/foo.
Before, plugins could see the node modules at PACKAGE/.npm/node_modules, which
was not isolated enough.
(One issue would be that if you happened to switch a package from having runtime
dependencies to having buildtime dependencies, the buildtime dependencies would
not get installed. This is partially an issue because we don't know to uninstall
all dependencies if they are all removed, but even if that is fixed it would
enforce an unnecessary ordering semantics on NPM updates.)
2013-06-14 11:12:31 -07:00
Slava Kim
5ba4f9f194
Adjust test with date, so it is browser-independent.
2013-06-12 19:16:50 -07:00
Slava Kim
a41573f59f
Convert dates and regexps to string, test these and some other
...
non-standard values. Tests will probably fail on IE5-7 :(.
2013-06-12 19:01:12 -07:00
Slava Kim
bcbd6e1b70
Make sure that 'message' of log object is always a string. Teach Log to
...
log falsy values. Throw an exception if use passed non-string as part of
log object. Tests for this functionality.
2013-06-12 18:08:34 -07:00
Avital Oliver
e682c97977
Include offset from UTC in formatted log strings
2013-06-03 10:41:12 -07:00
Slava Kim
51db0d2646
Test logging from evaled string.
2013-05-31 16:21:57 -07:00
Slava Kim
0665b33d4f
Pass logging tests on IE7.
2013-05-31 10:52:58 -07:00
Slava Kim
ca8b0408ef
Comment on ignoring the test for logging.
2013-05-30 15:15:07 -07:00
Slava Kim
c3513374bb
Skip one logging test for unsupported browsers.
2013-05-30 11:21:09 -07:00
Slava Kim
fc3a5c14d1
Get stack trace in FF.
2013-05-29 18:08:44 -07:00
Slava Kim
31e742e745
Use v8 js trace stack API for logging.
...
Rather than parsing formatted stack trace.
2013-05-29 15:29:10 -07:00
Avital Oliver
34157ebce4
minor tweaks to log format
2013-05-29 14:10:29 -07:00
Slava Kim
48c1b9bb48
Fix getting file name from url, adjust tests.
2013-05-29 13:40:06 -07:00
Slava Kim
5596dcf40f
Make getCallerDetails public, add tests.
2013-05-29 12:39:21 -07:00
Slava Kim
f75730e3c4
Add tests for logging restricted keys.
2013-05-29 12:30:54 -07:00
Slava Kim
410c5722bf
Adjust whitespace, new tests for logging.format.
2013-05-29 12:30:41 -07:00
Slava Kim
a3447577ec
Adjust white space and old tests in logging.
2013-05-29 12:30:31 -07:00
Avital Oliver
50bd0ab0bc
logging: add stderr indicator
2013-05-29 11:31:39 -07:00
Avital Oliver
35363b4516
minor brush-up
2013-05-28 20:18:54 -07:00
Avital Oliver
cc4c762afb
logging: 'stderr' is a reserved key
2013-05-28 19:41:30 -07:00
Slava Kim
8703e5d99a
Log program name with other source information.
2013-05-28 16:33:46 -07:00
Slava Kim
00d4bd1ab5
Separate RESTRICTED and FORMATTED keys, pass app name to proxy.
2013-05-28 15:02:21 -07:00
Slava Kim
1651ecbbd6
Logging 'originApp' field if it differs from 'app'
2013-05-24 16:22:43 -07:00
Slava Kim
9234205af3
Simplify the prettify method.
2013-05-24 15:39:37 -07:00
Slava Kim
e3a33ec0dd
Rename 'fileName' field to 'file'.
2013-05-24 15:13:28 -07:00
Slava Kim
9631221336
Rename infoPrefix since it is confusing.
2013-05-24 15:09:04 -07:00
Slava Kim
82c6efb5dd
Remove RESERVED_KEYS since they duplicate existing constant.
2013-05-24 15:07:20 -07:00
Slava Kim
359464c97b
Logs' fileds like app, fileName, line are formatted and colored.
2013-05-23 16:14:20 -07:00