Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 212925 Details for
Bug 374782
Setting favicon from branding extension point has no effect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Test case
Bug-374782-TestCase.patch (text/plain), 4.08 KB, created by
Ivan Furnadjiev
on 2012-03-20 11:49:21 EDT
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2012-03-20 11:49:21 EDT
Size:
4.08 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/rwt/internal/branding/TestBranding.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/branding/TestBranding.java,v >retrieving revision 1.3 >diff -u -r1.3 TestBranding.java >--- src/org/eclipse/rwt/internal/branding/TestBranding.java 26 Nov 2011 13:21:46 -0000 1.3 >+++ src/org/eclipse/rwt/internal/branding/TestBranding.java 20 Mar 2012 15:48:45 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2011 EclipseSource and others. >+ * Copyright (c) 2011, 2012 EclipseSource and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -29,49 +29,63 @@ > > public TestBranding() { > } >- >+ > public TestBranding( String servletName, String[] entryPoints, String defaultEntryPoint ) { > this.servletName = servletName; > this.entryPoints = entryPoints; > this.defaultEntryPoint = defaultEntryPoint; > } > >+ @Override > public String getId() { > return TestBranding.class.getName(); > } > >+ @Override > public String[] getEntryPoints() { > return entryPoints; > } > >+ @Override > public String getServletName() { > return servletName; > } > >+ @Override > public String getDefaultEntryPoint() { > return defaultEntryPoint; > } > >+ @Override > public String getBody() { > return null; > } >- >+ >+ @Override > public boolean showExitConfirmation() { > return showExitConf; > } >- >+ >+ @Override > public String getExitConfirmationText() { > return exitConfMessage; > } >- >+ >+ public void setFavIcon( String favIcon ) { >+ this.favIcon = favIcon; >+ } >+ >+ @Override > public String getFavIcon() { > return favIcon; > } >- >+ >+ @Override > public Header[] getHeaders() { > return headers; > } > >+ @Override > @SuppressWarnings("deprecation") > public void registerResources() throws IOException { > registerResourcesCallCount++; >Index: src/org/eclipse/rwt/internal/service/StartupPageConfigurer_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/rwt/internal/service/StartupPageConfigurer_Test.java,v >retrieving revision 1.8 >diff -u -r1.8 StartupPageConfigurer_Test.java >--- src/org/eclipse/rwt/internal/service/StartupPageConfigurer_Test.java 16 Mar 2012 11:14:57 -0000 1.8 >+++ src/org/eclipse/rwt/internal/service/StartupPageConfigurer_Test.java 20 Mar 2012 15:48:45 -0000 >@@ -22,6 +22,7 @@ > import org.eclipse.rap.rwt.testfixture.TestResponse; > import org.eclipse.rwt.client.WebClient; > import org.eclipse.rwt.internal.application.RWTFactory; >+import org.eclipse.rwt.internal.branding.TestBranding; > import org.eclipse.rwt.internal.lifecycle.TestEntryPoint; > import org.eclipse.rwt.internal.resources.ResourceRegistry; > import org.eclipse.rwt.internal.theme.ThemeTestUtil; >@@ -126,6 +127,19 @@ > + " href=\"rwt-resources/images/site-icon.png\" />" ) ); > } > >+ public void testFavIconFromBranding() throws IOException { >+ Map<String, String> properties = new HashMap<String, String>(); >+ RWTFactory.getEntryPointManager().registerByPath( "/rap", TestEntryPoint.class, properties ); >+ TestBranding branding = new TestBranding( "rap", null, null ); >+ branding.setFavIcon( "site-icon.png" ); >+ RWTFactory.getBrandingManager().register( branding ); >+ >+ String page = getContent( new StartupPageConfigurer( new ResourceRegistry() ).getTemplate() ); >+ >+ assertTrue( page.contains( "<link rel=\"shortcut icon\" type=\"image/x-icon\"" >+ + " href=\"rwt-resources/site-icon.png\" />" ) ); >+ } >+ > private static String getContent( StartupPageTemplateHolder template ) { > StringBuilder builder = new StringBuilder(); > for( String token : template.getTokens() ) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 374782
: 212925