Skip to content

Commit

Permalink
Count partial mixins as deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Bjerring committed Nov 5, 2018
1 parent fb4466f commit 38074f3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,17 @@ IdlArray.prototype.add_dependency_idls = function(raw_idls, options)
if (parsed[dep_type]) {
const inheriting = parsed[dep_type];
const inheritor = parsed.name || parsed.target;
for (const dep of [inheriting, inheritor]) {
const deps = [inheriting];
// For A includes B, we can ignore A, unless B (or some of its
// members) is being tested.
if (dep_type !== "includes"
|| inheriting in this.members && !this.members[inheriting].untested
|| this.partials.find(function(p) {
return p.name === inheriting;
})) {
deps.push(inheritor);
}
for (const dep of deps) {
new_options.only.push(dep);
all_deps.add(dep);
follow_up.add(dep);
Expand Down

0 comments on commit 38074f3

Please sign in to comment.