Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/WebKit/LayoutTests/inspector/help/release-note.html

Issue 2649023007: DevTools: implement release note behind an experiment (Closed)
Patch Set: make test platform independent Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/help/release-note-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/help/release-note.html
diff --git a/third_party/WebKit/LayoutTests/inspector/help/release-note.html b/third_party/WebKit/LayoutTests/inspector/help/release-note.html
new file mode 100644
index 0000000000000000000000000000000000000000..8054a2af14871440a08c9c1a768b55bea64efec2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector/help/release-note.html
@@ -0,0 +1,63 @@
+<html>
+<head>
+<script src="../../http/tests/inspector/inspector-test.js"></script>
+<script>
+function test() {
+ Help.releaseNoteText = [
+ {
+ version: 99,
+ highlights: [
+ {
+ text: "Test bullet #1",
+ link: "https://google.com/",
+ featured: true,
+ },
+ {
+ text: "Test bullet #2",
+ link: "https://google.com/",
+ },
+ ],
+ link: "https://google.com/",
+ image: {
+ src: "./resources/test.png",
+ caption: "Test image",
+ },
+ }
+ ];
+
+ InspectorTest.addSniffer(UI.inspectorView, "showPanel", onPanelShown);
+
+ InspectorTest.addResult(`Browser version: ${Help.browserVersion()}\n`);
+ Help.showReleaseNoteIfNeeded();
+
+ function onPanelShown(viewId, panelPromise) {
+ panelPromise.then(() => {
+ var releaseNoteView = UI.viewManager.view("release-note");
+ var releaseNoteElement = releaseNoteView[UI.View._widgetSymbol].contentElement;
+ InspectorTest.addResult("Dumping release note text:");
+ InspectorTest.addResult(releaseNoteElement.innerText);
+ InspectorTest.addResult("Last version of release note seen should be updated:");
+ InspectorTest.addResult(Help.releaseNoteVersionSetting().get() + "\n");
+
+ InspectorTest.addSniffer(UI.InspectorView.prototype, "closeDrawerTab", onClose);
+ InspectorTest.addResult("Click on hide button");
+ var closeButton = releaseNoteElement.querySelector(".close-release-note");
+ closeButton.click();
+ });
+ }
+
+ function onClose(view) {
+ InspectorTest.addResult(`Hiding view: ${view}`);
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+<body onload="runTest()">
+<p>
+Test release note
+</p>
+
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/help/release-note-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698