Index: tests/admin/includesScreen.php
===================================================================
--- tests/admin/includesScreen.php	(revision 998)
+++ tests/admin/includesScreen.php	(working copy)
@@ -70,6 +70,12 @@
 			if ( isset( $screen->taxonomy ) )
 				$this->assertEquals( $screen->taxonomy, $current_screen->taxonomy, $hook_name );
 
+			$this->assertTrue( $current_screen->in_admin() );
+			$this->assertTrue( $current_screen->in_admin( 'blog' ) );
+			$this->assertFalse( $current_screen->in_admin( 'network' ) );
+			$this->assertFalse( $current_screen->in_admin( 'user' ) );
+			$this->assertFalse( $current_screen->in_admin( 'garbage' ) );
+			
 			// With convert_to_screen(), the same ID should return the exact $current_screen.
 			$this->assertSame( $current_screen, convert_to_screen( $screen->id ), $hook_name );
 
@@ -163,4 +169,32 @@
 		$screen->remove_help_tabs();
 		$this->assertEquals( $screen->get_help_tabs(), array() );
 	}
+
+	function test_in_admin() {
+		$screen = get_current_screen();
+
+		set_current_screen( 'edit.php' );
+		$this->assertTrue( get_current_screen()->in_admin() );
+		$this->assertTrue( get_current_screen()->in_admin( 'blog' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'network' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'user' ) );
+
+		set_current_screen( 'dashboard-network' );
+		$this->assertTrue( get_current_screen()->in_admin() );
+		$this->assertFalse( get_current_screen()->in_admin( 'blog' ) );
+		$this->assertTrue( get_current_screen()->in_admin( 'network' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'user' ) );
+
+		set_current_screen( 'dashboard-user' );
+		$this->assertTrue( get_current_screen()->in_admin() );
+		$this->assertFalse( get_current_screen()->in_admin( 'blog' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'network' ) );
+		$this->assertTrue( get_current_screen()->in_admin( 'user' ) );
+
+		set_current_screen( 'front' );
+		$this->assertFalse( get_current_screen()->in_admin() );
+		$this->assertFalse( get_current_screen()->in_admin( 'blog' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'network' ) );
+		$this->assertFalse( get_current_screen()->in_admin( 'user' ) );
+	}
 }
