Skip to content

Commit

Permalink
fix the tests (#55)
Browse files Browse the repository at this point in the history
Fixes 8 out of 11 failing tests.
  • Loading branch information
sfindeisen authored and barteklos committed Apr 8, 2024
1 parent b36dfa0 commit 667789d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions src/tests_basic/resources/publisher/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ <h1>run ad auction</h1>
'https://localhost:8081': {
contextualBidRequestId: 'abc'
}
}
},
resolveToConfig: true,
});
console.log("winning url " + ar);
const adDiv = document.getElementById('ad');
Expand All @@ -30,8 +31,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand All @@ -49,4 +49,4 @@ <h1>Hello!</h1>


</body>
</html>
</html>
4 changes: 2 additions & 2 deletions src/tests_daily_update/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:8201": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -25,8 +26,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_debugging_api/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ <h1>run ad auction</h1>
seller: seller_address,
decisionLogicUrl: seller_address + '/seller.js',
interestGroupBuyers: [buyer_address],
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -24,8 +25,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_functional/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:8091": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -25,8 +26,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_performance/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:9011": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -26,8 +27,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_prevwins/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ <h1>run ad auction</h1>
seller: seller_address,
decisionLogicUrl: seller_address + '/seller.js',
interestGroupBuyers: [buyer_address],
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -24,8 +25,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_reportbid/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ <h1>run ad auction</h1>
seller: seller_address,
decisionLogicUrl: seller_address + '/seller.js',
interestGroupBuyers: [buyer_address],
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -24,8 +25,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_trusted_bidding_signals/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:8101": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -26,8 +27,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_webassembly/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:9021": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -25,8 +26,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down
4 changes: 2 additions & 2 deletions src/tests_webassembly_api/resources/seller/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>run ad auction</h1>
auctionSignals: {key: "auction signals"},
sellerSignals: {key: "seller signals"},
perBuyerSignals: {"https://localhost:9031": {key: "tc signals"}},
resolveToConfig: true,
});

console.log("winning url " + ar);
Expand All @@ -25,8 +26,7 @@ <h1>run ad auction</h1>
adDiv.appendChild(document.createTextNode("No turtledove winner"));
} else {
const fframe = document.createElement('fencedframe');
fframe.setAttribute('mode', 'opaque-ads');
fframe.setAttribute('src', ar);
fframe.config = ar;
fframe.setAttribute('style', 'width: 100px; height: 100px');
adDiv.appendChild(fframe);
}
Expand Down

0 comments on commit 667789d

Please sign in to comment.