Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Enable inspector tests for ChakraCore #247

Merged
merged 3 commits into from
May 19, 2017
Merged

Conversation

kfarnung
Copy link
Contributor

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

build, test

@kfarnung
Copy link
Contributor Author

kfarnung commented May 17, 2017

@@ -9,4 +9,3 @@ prefix inspector
[$system==win32]

[$jsEngine==chakracore]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not remove this section altogether and have it match upstream?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy enough, I'll do that.

@@ -8,7 +8,7 @@ const { test, assert_equals } = common.WPT;
const additionalTestCases = require(
path.join(common.fixturesDir, 'url-setter-tests-additional.js'));

if (!common.hasIntl) {
if (!common.hasIntl || common.isChakraEngine) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this too broad? Like Intl should be available on Windows, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can take another look, but this was an issue on Windows in my testing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Odd, here's the failure on see on Windows:

=== release test-whatwg-url-setters ===
Path: parallel/test-whatwg-url-setters
TypeError: Object doesn't support property or method 'ToString'
   at href.set (internal/url.js:307:7)
   at Anonymous function (E:\GitHub\node-chakracore\test\parallel\test-whatwg-url-setters.js:121:27)
   at _tryBlock (assert.js:503:5)
   at _throws (assert.js:522:3)
   at throws (assert.js:552:3)
   at Anonymous function (E:\GitHub\node-chakracore\test\parallel\test-whatwg-url-setters.js:121:7)
   at Module.prototype._compile (module.js:582:5)
   at Module._extensions[.js] (module.js:593:3)
   at Module.prototype.load (module.js:516:3)
   at tryModuleLoad (module.js:466:5)
Command: E:\GitHub\node-chakracore\Release\node.exe E:\GitHub\node-chakracore\test\parallel\test-whatwg-url-setters.js

I'll investigate further.

@kunalspathak
Copy link
Member

LGTM. Agree with @digitalinfinity feedback though.

@kfarnung kfarnung force-pushed the inspect_tests branch 2 times, most recently from c870860 to f923b15 Compare May 18, 2017 22:20
@kfarnung
Copy link
Contributor Author

This is the first part of #227.

@kfarnung
Copy link
Contributor Author

This should also resolve #226

* Enabled intl support to get UTF-8/UTF-16 conversion for inspector.
  This is a temporary move before actual intl support is enabled.
* Removed workaround for UTF-8 conversion functions that weren't
  available before ICU was enabled.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
Enabled tests for inspector and updated them to account for
differences between V8 and ChakraCore.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
@@ -1,476 +1,445 @@
#include "inspector_io.h"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the result of git checkout nodejs/master src/inspector_io.cc. At some point the line endings must have gotten messed up. The diff here just removes the UTF-8/UTF-16 conversion workarounds that I added for inspector.

A new rule was added to enforce function declaration style.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
@kfarnung kfarnung merged commit 9bf51e4 into nodejs:xplat May 19, 2017
@kfarnung kfarnung deleted the inspect_tests branch May 19, 2017 01:26
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request May 23, 2017
A new rule was added to enforce function declaration style.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request May 23, 2017
* Enabled intl support to get UTF-8/UTF-16 conversion for inspector.
  This is a temporary move before actual intl support is enabled.
* Removed workaround for UTF-8 conversion functions that weren't
  available before ICU was enabled.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request May 23, 2017
Enabled tests for inspector and updated them to account for
differences between V8 and ChakraCore.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request May 23, 2017
* Enabled intl support to get UTF-8/UTF-16 conversion for inspector.
  This is a temporary move before actual intl support is enabled.
* Removed workaround for UTF-8 conversion functions that weren't
  available before ICU was enabled.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request May 23, 2017
Enabled tests for inspector and updated them to account for
differences between V8 and ChakraCore.

PR-URL: nodejs#247
Reviewed-By: Hitesh Kanwathirtha <[email protected]>
Reviewed-By: Kunal Pathak <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants