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

Side by Side Diff: ManualTests/blackberry/http-auth-challenge.php

Issue 780003004: Cleanup: Remove notification test from blackberry. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: g rm -rf ManualTests/blackberry Created 6 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <?php
2 session_start();
3 if (isset($_SESSION['triedTimes']))
4 $_SESSION['triedTimes'] = $_SESSION['triedTimes'] + 1;
5 else
6 $_SESSION['triedTimes'] = 1;
7
8 $username = $password = "aaaa";
9
10 if ($_SERVER['PHP_AUTH_USER'] == $username && $_SERVER['PHP_AUTH_PW'] == $pa ssword){
11 echo "Auth dialog behavior when press OK button: ";
12 if ($_SESSION['triedTimes'] == 5)
13 echo "<span style='color:green'>PASS</span>";
14 else
15 echo "<span style='color:red'>FAIL</span>";
16 exit;
17 } else {
18 header('WWW-Authenticate: Basic realm="My Realm"');
19 header('HTTP/1.0 401 Unauthorized');
20 echo "Auth dialog behavior when press Cancel button: ";
21 if ($_SESSION['triedTimes'] == 1)
22 echo "<span style='color:green'>PASS</span>";
23 else
24 echo "<span style='color:red'>FAIL</span>";
25 exit;
26 }
27 ?>
OLDNEW
« no previous file with comments | « ManualTests/blackberry/http-auth-challenge.html ('k') | ManualTests/blackberry/http-auth-on-200.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698