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

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

Issue 2935393002: DevTools: stop whats new from opening on fresh profile (Closed)
Patch Set: tests Created 3 years, 6 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 function test() { 5 function test() {
6 Help.releaseNoteText = [ 6 Help.releaseNoteText = [
7 { 7 {
8 version: 99, 8 version: 99,
9 header: 'Highlights from Chrome 100 update', 9 header: 'Highlights from Chrome 100 update',
10 highlights: [ 10 highlights: [
11 { 11 {
12 title: 'Improved Performance and Memory panels', 12 title: 'Improved Performance and Memory panels',
13 subtitle: '', 13 subtitle: '',
14 link: 'https://developers.google.com/web/tools/chrome-devto ols/', 14 link: 'https://developers.google.com/web/tools/chrome-devto ols/',
15 }, 15 },
16 { 16 {
17 title: 'Edit cookies directly from the Application panel', 17 title: 'Edit cookies directly from the Application panel',
18 subtitle: '', 18 subtitle: '',
19 link: 'https://developers.google.com/web/tools/chrome-devto ols/', 19 link: 'https://developers.google.com/web/tools/chrome-devto ols/',
20 }, 20 },
21 ], 21 ],
22 link: 'https://developers.google.com/web/tools/chrome-devtools/', 22 link: 'https://developers.google.com/web/tools/chrome-devtools/',
23 }, 23 },
24 ]; 24 ];
25 25
26 InspectorTest.addSniffer(UI.viewManager, "showView", onShowView); 26 InspectorTest.addSniffer(UI.viewManager, "showView", onShowView);
27 27
28 InspectorTest.addResult("Last release note version seen:"); 28 InspectorTest.addResult("Last release note version seen:");
29 Help.releaseNoteVersionSetting().set(1);
29 InspectorTest.addResult(Help.releaseNoteVersionSetting().get() + "\n"); 30 InspectorTest.addResult(Help.releaseNoteVersionSetting().get() + "\n");
30 Help.showReleaseNoteIfNeeded(); 31 Help.showReleaseNoteIfNeeded();
31 32
32 function onShowView(viewId, isUserGesture, viewPromise) { 33 function onShowView(viewId, isUserGesture, viewPromise) {
33 viewPromise.then(() => { 34 viewPromise.then(() => {
34 var releaseNoteView = UI.viewManager.view("release-note"); 35 var releaseNoteView = UI.viewManager.view("release-note");
35 var releaseNoteElement = releaseNoteView[UI.View._widgetSymbol].cont entElement; 36 var releaseNoteElement = releaseNoteView[UI.View._widgetSymbol].cont entElement;
36 InspectorTest.addResult("Dumping release note text:"); 37 InspectorTest.addResult("Dumping release note text:");
37 InspectorTest.addResult(releaseNoteElement.innerText); 38 InspectorTest.addResult(releaseNoteElement.innerText);
38 InspectorTest.addResult("Last version of release note seen should be updated:"); 39 InspectorTest.addResult("Last version of release note seen should be updated:");
(...skipping 14 matching lines...) Expand all
53 54
54 </script> 55 </script>
55 </head> 56 </head>
56 <body onload="runTest()"> 57 <body onload="runTest()">
57 <p> 58 <p>
58 Test release note 59 Test release note
59 </p> 60 </p>
60 61
61 </body> 62 </body>
62 </html> 63 </html>
OLDNEW
« 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