Upgrade to Jasmine 3 (#4226)

* process.exit() only exist in a node.js environment

* updateInterval has been removed from upstream

From upstream commit:
b6eb9a4d5e

* Update Jasmine to 3.4.0

* Reuse the evalInContext helper

* Fix expected parse result to match the actual result

* 'describe' cannot be nested inside 'it' blocks

Jasmine started to explicitly raise an error in these cases since:
https://github.com/jasmine/jasmine/pull/1411

* Be consistent about how to refer to library files

* Update link to Jasmine's official website
This commit is contained in:
Marica Odagaki
2019-11-12 13:42:38 -08:00
committed by Jeremy Ruston
parent 2deed528bc
commit 613f0b2559
24 changed files with 9626 additions and 3871 deletions

View File

@@ -156,7 +156,7 @@ describe("HTML tag new parser tests", function() {
null
);
expect(parser.parseTag("<mytag>",0)).toEqual(
{ type : 'element', start : 0, attributes : [ ], tag : 'mytag', end : 7 }
{ type : 'element', start : 0, attributes : { }, tag : 'mytag', end : 7 }
);
expect(parser.parseTag("<mytag attrib1>",0)).toEqual(
{ type : 'element', start : 0, attributes : { attrib1 : { type : 'string', value : 'true', start : 6, name : 'attrib1', end : 14 } }, tag : 'mytag', end : 15 }