Comments (6)
This seems overcomplicated. I would just split out tests that use proxies into a separate file, e.g. Array.prototype.contains-proxies-this-arg
or something.
from test262.
Sure, but then that test fails and it's up to the person running the test to know that it's an expected failure in a host without proxies. Imagine testing a polyfill in an ES5 implementation - it would be nice to have the proxy integration tests automatically filtered out.
I agree, though, that this isn't super critical, but it would be nice to have IMO :)
from test262.
Having an es6 feature tag on the test that says "Proxy" would be enough to tell us to skip that test if the host doesn't have proxies.
Is that enough to address both the prerequisite and the interaction issue?
Annotate a test with the es6 features and abstract operations it touches. That's enough to get us an idea of coverage/lack of and to rule out tests that hit uncovered operations.
es6: [Array#find, IsCallable, arrowfunctions]
On Mon, Oct 27, 2014 at 4:56 PM, Brian Terlson [email protected]
wrote:
Sure, but then that test fails and it's up to the person running the test to know that it's an expected failure in a host without proxies. Imagine testing a polyfill in an ES5 implementation - it would be nice to have the proxy integration tests automatically filtered out.
I agree, though, that this isn't super critical, but it would be nice to have IMO :)
Reply to this email directly or view it on GitHub:
#111 (comment)
from test262.
Is that enough to address both the prerequisite and the interaction issue?
It's not enough I don't think. You still need some way of determining if the feature is present, aka a mapping of "Proxy" to return typeof Proxy === 'function'
.
from test262.
It's not enough I don't think. You still need some way of determining if the feature is present, aka a mapping of "Proxy" to return typeof Proxy === 'function'.
Oh, I thought we were going to do that manually. So if I'm testing v8 today I would have some sort of features.json file with Proxy: false
.
Even so, whether it's manual or automatic, tagging a test as features: [Proxy]
is a good start in being able to filter out these cross-es6-feature dependencies
from test262.
We ended up using the features tag, which is not really consumed, but at this point I think it's too late to fix unless we have a new plan. Closing it for now.
from test262.
Related Issues (20)
- Missing coverage for parenthesized LHS
- [spam]
- Missing coverage for Top Level Await
- Missing byteConversionValues.expected.Float16
- Tests of Iterator.prototype.constructor/toStringTag are broken HOT 2
- $262.IsHTMLDDA's [[Call]] behavior is underspecified
- The Decorators proposal does not have enough tests HOT 2
- Tests using `__proto__` without appropriate `features` entry HOT 1
- Guidance on writing testing plans and where to include them in the process HOT 1
- Tests for `-->` in the first line should not have `raw` flag. HOT 2
- test/harness/testTypedArray{,-conversions}.js not updated for Float16Array
- Ideas for additional coverage for base64
- Add test case for `Object.groupBy` / `Map.groupBy` with strings? HOT 3
- `Function.prototype.toString` for a built-in function with a name that is invalid as an identifier HOT 4
- Decorators Testing Plan
- Mapping between Test262 and web-features HOT 10
- Remove non-existend "AsyncArrowFunction" constructor
- Please sync the test to intl-duration-format/pull PR181 HOT 1
- Math.sumPrecise testing plan HOT 3
- nanoseconds: Number.MAX_VALUE in precision-exact-mathematical-values HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test262.